]> granicus.if.org Git - clang/commitdiff
Make that test case actually test something, and add another test.
authorJohn McCall <rjmccall@apple.com>
Tue, 1 Feb 2011 08:30:38 +0000 (08:30 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 1 Feb 2011 08:30:38 +0000 (08:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124654 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/mangle-unnamed.cpp

index e9f60d04507388ccf1c4e1ff6594a93d4e821622..53f381c3a011de626c227707c4bb7df42d744ed0 100644 (file)
@@ -75,8 +75,18 @@ int f7() {
 enum { T8 };
 template <class T> struct Test8 {
   typedef T type;
-  // define internal void @"_ZN5Test8I3$_2EC1ES0_"(
-  Test8(type t) {}
+  Test8(type t) {} // tested later
 };
 template <class T> void make_test8(T value) { Test8<T> t(value); }
 void test8() { make_test8(T8); }
+
+// CHECK: define internal void @"_ZNV3$_35test9Ev"(
+typedef volatile struct {
+  void test9() volatile {}
+} Test9;
+void test9() {
+  Test9 a;
+  a.test9();
+}
+
+// CHECK: define internal void @"_ZN5Test8I3$_2EC1ES0_"(