summaryrefslogtreecommitdiff
path: root/clang/test/Sema/weak-import-on-enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/weak-import-on-enum.c')
-rw-r--r--clang/test/Sema/weak-import-on-enum.c8
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 0000000..3a2c0e5
--- /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
+};
+