From a77e0726341a4afbe9c25b05cf944edf17f64543 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sun, 22 Apr 2012 02:41:22 +0000 Subject: [PATCH] Add another missing testcase. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155304 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/visibility.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 +}