aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/attr-visibility.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/attr-visibility.c')
-rw-r--r--test/Sema/attr-visibility.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/attr-visibility.c b/test/Sema/attr-visibility.c
index 4996dca5be..cb549921ab 100644
--- a/test/Sema/attr-visibility.c
+++ b/test/Sema/attr-visibility.c
@@ -14,3 +14,6 @@ struct __attribute__((visibility("default"))) test4; // expected-error {{visibil
struct test5;
struct __attribute__((visibility("hidden"))) test5; // expected-note {{previous attribute is here}}
struct __attribute__((visibility("default"))) test5; // expected-error {{visibility does not match previous declaration}}
+
+void test6() __attribute__((visibility("hidden"), // expected-note {{previous attribute is here}}
+ visibility("default"))); // expected-error {{visibility does not match previous declaration}}