diff options
Diffstat (limited to 'test/Sema/attr-visibility.c')
-rw-r--r-- | test/Sema/attr-visibility.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Sema/attr-visibility.c b/test/Sema/attr-visibility.c index 77bc39c..7f7fd54 100644 --- a/test/Sema/attr-visibility.c +++ b/test/Sema/attr-visibility.c @@ -21,4 +21,6 @@ void test6() __attribute__((visibility("hidden"), // expected-note {{previous at 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}} -typedef int __attribute__((visibility("default"))) bar; // expected-warning {{visibility attribute ignored}} +typedef int __attribute__((visibility("default"))) bar; // expected-warning {{'visibility' attribute ignored}} + +int x __attribute__((type_visibility("default"))); // expected-error {{'type_visibility' attribute only applies to types and namespaces}} |