diff options
author | John McCall <rjmccall@apple.com> | 2011-02-01 08:30:38 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-02-01 08:30:38 +0000 |
commit | 38ca4f762aa6e6add4f6bdf6adcddfe1afe37a25 (patch) | |
tree | ff342a59bb63cfe472f63f6b879c4eec514a9df7 /test/CodeGenCXX/mangle-unnamed.cpp | |
parent | cde5a400dbc9655eddf0f383585d3cf67c11c539 (diff) |
Make that test case actually test something, and add another test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle-unnamed.cpp')
-rw-r--r-- | test/CodeGenCXX/mangle-unnamed.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/test/CodeGenCXX/mangle-unnamed.cpp b/test/CodeGenCXX/mangle-unnamed.cpp index e9f60d0450..53f381c3a0 100644 --- a/test/CodeGenCXX/mangle-unnamed.cpp +++ b/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_"( |