diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-05-10 03:01:34 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-05-10 03:01:34 +0000 |
| commit | a6b3cd493c0069eab8c0341783c42fb1b859964b (patch) | |
| tree | da46e5895df7587c610f6a42bce2871717547e9f /clang/test/Sema/attr-visibility.c | |
| parent | 5cc6ef9e891f61ead36fc0ebf5d8000da3ae1af2 (diff) | |
| download | bcm5719-llvm-a6b3cd493c0069eab8c0341783c42fb1b859964b.tar.gz bcm5719-llvm-a6b3cd493c0069eab8c0341783c42fb1b859964b.zip | |
Warn about visibility attributes in typedefs.
llvm-svn: 156534
Diffstat (limited to 'clang/test/Sema/attr-visibility.c')
| -rw-r--r-- | clang/test/Sema/attr-visibility.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Sema/attr-visibility.c b/clang/test/Sema/attr-visibility.c index cc3c54a047b..77bc39c9e6e 100644 --- a/clang/test/Sema/attr-visibility.c +++ b/clang/test/Sema/attr-visibility.c @@ -20,3 +20,5 @@ 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}} |

