[cfe-commits] r155302 - /cfe/trunk/test/CodeGenCXX/visibility.cpp

Rafael Espindola rafael.espindola at gmail.com
Sat Apr 21 18:22:25 PDT 2012


Author: rafael
Date: Sat Apr 21 20:22:25 2012
New Revision: 155302

URL: http://llvm.org/viewvc/llvm-project?rev=155302&view=rev
Log:
Add a testcase we were already getting right, but were not testing for.

Modified:
    cfe/trunk/test/CodeGenCXX/visibility.cpp

Modified: cfe/trunk/test/CodeGenCXX/visibility.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/visibility.cpp?rev=155302&r1=155301&r2=155302&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/visibility.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/visibility.cpp Sat Apr 21 20:22:25 2012
@@ -631,3 +631,16 @@
   // CHECK: define void @_ZN6test261CIiE1fEv
   // CHECK-HIDDEN: define void @_ZN6test261CIiE1fEv
 }
+
+namespace test31 {
+  struct A {
+    struct HIDDEN B {
+      static void DEFAULT baz();
+    };
+  };
+  void f() {
+    A::B::baz();
+  }
+  // CHECK: declare void @_ZN6test311A1B3bazEv()
+  // CHECK-HIDDEN: declare void @_ZN6test311A1B3bazEv()
+}





More information about the cfe-commits mailing list