diff --git a/test/CodeGenCXX/visibility.cpp b/test/CodeGenCXX/visibility.cpp index 808b7ffff6..c73f3f7164 100644 --- a/test/CodeGenCXX/visibility.cpp +++ b/test/CodeGenCXX/visibility.cpp @@ -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 +}