]> granicus.if.org Git - clang/commitdiff
Add another missing testcase.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 22 Apr 2012 02:41:22 +0000 (02:41 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 22 Apr 2012 02:41:22 +0000 (02:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155304 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/visibility.cpp

index 808b7ffff6e902187e61e9c0fe9177e9e09abeaa..c73f3f7164257fcf2491491057b41eeeedaa7501 100644 (file)
@@ -644,3 +644,15 @@ namespace test31 {
   // CHECK: declare void @_ZN6test311A1B3bazEv()
   // CHECK-HIDDEN: declare void @_ZN6test311A1B3bazEv()
 }
+
+namespace test32 {
+  struct HIDDEN A {
+    struct DEFAULT B {
+      void DEFAULT baz();
+    };
+  };
+  void A::B::baz() {
+  }
+  // CHECK: define void @_ZN6test321A1B3bazEv
+  // CHECK-HIDDEN: define void @_ZN6test321A1B3bazEv
+}