summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/mangle-unnamed.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-02-01 08:30:38 +0000
committerJohn McCall <rjmccall@apple.com>2011-02-01 08:30:38 +0000
commit9361be98d59f607df556c9be62045af103ab7e44 (patch)
tree8a0ffbb45330c08c914f97809bb43ba2da569742 /clang/test/CodeGenCXX/mangle-unnamed.cpp
parent04fcd0d58f3cf32ec3456dd08d789ff919087b20 (diff)
downloadbcm5719-llvm-9361be98d59f607df556c9be62045af103ab7e44.tar.gz
bcm5719-llvm-9361be98d59f607df556c9be62045af103ab7e44.zip
Make that test case actually test something, and add another test.
llvm-svn: 124654
Diffstat (limited to 'clang/test/CodeGenCXX/mangle-unnamed.cpp')
-rw-r--r--clang/test/CodeGenCXX/mangle-unnamed.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/mangle-unnamed.cpp b/clang/test/CodeGenCXX/mangle-unnamed.cpp
index e9f60d04507..53f381c3a01 100644
--- a/clang/test/CodeGenCXX/mangle-unnamed.cpp
+++ b/clang/test/CodeGenCXX/mangle-unnamed.cpp
@@ -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_"(
OpenPOWER on IntegriCloud