[cfe-commits] r124654 - /cfe/trunk/test/CodeGenCXX/mangle-unnamed.cpp
John McCall
rjmccall at apple.com
Tue Feb 1 00:30:38 PST 2011
Author: rjmccall
Date: Tue Feb 1 02:30:38 2011
New Revision: 124654
URL: http://llvm.org/viewvc/llvm-project?rev=124654&view=rev
Log:
Make that test case actually test something, and add another test.
Modified:
cfe/trunk/test/CodeGenCXX/mangle-unnamed.cpp
Modified: cfe/trunk/test/CodeGenCXX/mangle-unnamed.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/mangle-unnamed.cpp?rev=124654&r1=124653&r2=124654&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/mangle-unnamed.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/mangle-unnamed.cpp Tue Feb 1 02:30:38 2011
@@ -75,8 +75,18 @@
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_"(
More information about the cfe-commits
mailing list