]> granicus.if.org Git - clang/commitdiff
Add a simple const mangling test.
authorAnders Carlsson <andersca@mac.com>
Wed, 16 Sep 2009 23:53:19 +0000 (23:53 +0000)
committerAnders Carlsson <andersca@mac.com>
Wed, 16 Sep 2009 23:53:19 +0000 (23:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82096 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/mangle.cpp

index ef36a8b23cfc3a71f8076d67b821f44b2b6c94fb..1028defefae89faa71cde17649bffeeeaefb266d 100644 (file)
@@ -83,5 +83,10 @@ struct S;
 // RUN: grep "_Z1fM1SKFvvE" %t | count 1 &&
 void f(void (S::*)() const) {}
 
-// RUN: grep "_Z1fM1SFvvE" %t | count 1
+// RUN: grep "_Z1fM1SFvvE" %t | count 1 &&
 void f(void (S::*)()) {}
+
+// RUN: grep "_Z1fi" %t | count 1 &&
+void f(const int) { }
+
+// RUN: true