diff options
Diffstat (limited to 'test/CodeGenCXX/visibility.cpp')
-rw-r--r-- | test/CodeGenCXX/visibility.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGenCXX/visibility.cpp b/test/CodeGenCXX/visibility.cpp index 537e89dc1b..87add446ba 100644 --- a/test/CodeGenCXX/visibility.cpp +++ b/test/CodeGenCXX/visibility.cpp @@ -1260,3 +1260,20 @@ namespace test66 { // CHECK: define weak_odr void @_ZN6test664barFIXadL_ZNS_1FEvEEE3zedEv // CHECK-HIDDEN: define weak_odr void @_ZN6test664barFIXadL_ZNS_1FEvEEE3zedEv } + +namespace test67 { + template <typename T> + struct DEFAULT bar { + static void zed() {} + }; + + class foo; + class compute { + void f(foo *rootfoo); + }; + class DEFAULT foo; + + template struct bar<foo>; + // CHECK: define weak_odr void @_ZN6test673barINS_3fooEE3zedEv + // CHECK-HIDDEN: define weak_odr void @_ZN6test673barINS_3fooEE3zedEv +} |