From: John McCall Date: Tue, 1 Feb 2011 08:30:38 +0000 (+0000) Subject: Make that test case actually test something, and add another test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38ca4f762aa6e6add4f6bdf6adcddfe1afe37a25;p=clang 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 --- 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 struct Test8 { typedef T type; - // define internal void @"_ZN5Test8I3$_2EC1ES0_"( - Test8(type t) {} + Test8(type t) {} // tested later }; template void make_test8(T value) { Test8 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_"(