summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-visibility.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/attr-visibility.c')
-rw-r--r--clang/test/Sema/attr-visibility.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Sema/attr-visibility.c b/clang/test/Sema/attr-visibility.c
index cb549921abe..cc3c54a047b 100644
--- a/clang/test/Sema/attr-visibility.c
+++ b/clang/test/Sema/attr-visibility.c
@@ -17,3 +17,6 @@ struct __attribute__((visibility("default"))) test5; // expected-error {{visibil
void test6() __attribute__((visibility("hidden"), // expected-note {{previous attribute is here}}
visibility("default"))); // expected-error {{visibility does not match previous declaration}}
+
+extern int test7 __attribute__((visibility("default"))); // expected-note {{previous attribute is here}}
+extern int test7 __attribute__((visibility("hidden"))); // expected-error {{visibility does not match previous declaration}}
OpenPOWER on IntegriCloud