diff options
Diffstat (limited to 'test/CodeGenCXX/visibility.cpp')
| -rw-r--r-- | test/CodeGenCXX/visibility.cpp | 20 | 
1 files changed, 19 insertions, 1 deletions
diff --git a/test/CodeGenCXX/visibility.cpp b/test/CodeGenCXX/visibility.cpp index 5edd27b8b279..ee3c1795fbb7 100644 --- a/test/CodeGenCXX/visibility.cpp +++ b/test/CodeGenCXX/visibility.cpp @@ -5,7 +5,7 @@  #define DEFAULT __attribute__((visibility("default")))  // CHECK: @_ZN5Test425VariableInHiddenNamespaceE = hidden global i32 10 - +// CHECK: @_ZTVN5Test63fooE = weak_odr hidden constant   namespace Test1 {    // CHECK: define hidden void @_ZN5Test11fEv    void HIDDEN f() { } @@ -64,3 +64,21 @@ namespace Test5 {      void g() { }    }  } + +// <rdar://problem/8091955> +namespace Test6 { +  struct HIDDEN foo { +    foo() { } +    void bonk(); +    virtual void bar() = 0; + +    virtual void zonk() {} +  }; + +  struct barc : public foo { +    barc(); +    virtual void bar(); +  }; + +  barc::barc() {} +}  | 
