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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Sema/attr-visibility.c b/test/Sema/attr-visibility.c
index 7f7fd546f095..ed52ec2743f9 100644
--- a/test/Sema/attr-visibility.c
+++ b/test/Sema/attr-visibility.c
@@ -24,3 +24,5 @@ extern int test7 __attribute__((visibility("hidden"))); // expected-error {{visi
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}}
+
+int PR17105 __attribute__((visibility(hidden))); // expected-error {{'visibility' attribute requires a string}}