diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-05-03 03:16:07 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-05-03 03:16:07 +0000 |
commit | ecefe8a46344839f5272956a045e6f500f0a927e (patch) | |
tree | a31ccf9a048be3edaffd2f157bc00f95c8af64b4 /test/Sema | |
parent | 6aecacbb8d3d7322d588b528a34a0425444dfafd (diff) |
Revert r359814 "[Sema] Emit warning for visibility attribute on internal-linkage declaration"
See cfe-commits thread for r359814.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359858 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema')
-rw-r--r-- | test/Sema/attr-visibility.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/Sema/attr-visibility.c b/test/Sema/attr-visibility.c index 792721a1ac..798d6dcd78 100644 --- a/test/Sema/attr-visibility.c +++ b/test/Sema/attr-visibility.c @@ -26,9 +26,3 @@ typedef int __attribute__((visibility("default"))) bar; // expected-warning {{'v int x __attribute__((type_visibility("default"))); // expected-error {{'type_visibility' attribute only applies to types and namespaces}} int PR17105 __attribute__((visibility(hidden))); // expected-error {{'visibility' attribute requires a string}} - -static int test8 __attribute__((visibility("default"))); // expected-warning {{'visibility' attribute is ignored on a non-external symbol}} -static int test9 __attribute__((visibility("hidden"))); // expected-warning {{'visibility' attribute is ignored on a non-external symbol}} -static int test10 __attribute__((visibility("internal"))); // expected-warning {{'visibility' attribute is ignored on a non-external symbol}} - -static int test11() __attribute__((visibility("default"))); // expected-warning {{'visibility' attribute is ignored on a non-external symbol}} |