diff options
Diffstat (limited to 'test/CodeGenCXX/pragma-visibility.cpp')
-rw-r--r-- | test/CodeGenCXX/pragma-visibility.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/CodeGenCXX/pragma-visibility.cpp b/test/CodeGenCXX/pragma-visibility.cpp index 2dc8bcc..e54626e 100644 --- a/test/CodeGenCXX/pragma-visibility.cpp +++ b/test/CodeGenCXX/pragma-visibility.cpp @@ -55,20 +55,8 @@ namespace n __attribute((visibility("default"))) { #pragma GCC visibility pop namespace n __attribute((visibility("default"))) { - extern int foofoo; // FIXME: Shouldn't be necessary, but otherwise the pragma - // gets to Sema before the namespace! #pragma GCC visibility push(hidden) void g() {} // CHECK: define hidden void @_ZN1n1gEv #pragma GCC visibility pop } - -// We used to test this, but it's insane, so unless it happens in -// headers, we should not support it. -namespace n __attribute((visibility("hidden"))) { - extern int foofoo; // FIXME: Shouldn't be necessary, but otherwise the pragma - // gets to Sema before the namespace! - #pragma GCC visibility pop - void h() {} - // CHECK disabled: define void @_ZN1n1hEv -} |