diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-10-26 23:59:12 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-10-26 23:59:12 +0000 |
commit | 3249a1e8626fb73fba5fc840d2656b77ec27bf20 (patch) | |
tree | ce7332fbb51f6d849ec21e170bdf02276da4e86e /clang/test/Sema/weak-import-on-enum.c | |
parent | 58dba012b6211d6c155df4f1fd7b7b4df9b6b3f1 (diff) | |
download | bcm5719-llvm-3249a1e8626fb73fba5fc840d2656b77ec27bf20.tar.gz bcm5719-llvm-3249a1e8626fb73fba5fc840d2656b77ec27bf20.zip |
Do not warn when weak-import attribute is applied to enum
decl. in Darwin due to certain projects requirement.
// rdar://10277579
llvm-svn: 143082
Diffstat (limited to 'clang/test/Sema/weak-import-on-enum.c')
-rw-r--r-- | clang/test/Sema/weak-import-on-enum.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Sema/weak-import-on-enum.c b/clang/test/Sema/weak-import-on-enum.c new file mode 100644 index 00000000000..3a2c0e5b3a1 --- /dev/null +++ b/clang/test/Sema/weak-import-on-enum.c @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-apple-darwin %s +// RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s +// rdar://10277579 + +enum __attribute__((deprecated)) __attribute__((weak_import)) A { + a0 +}; + |