aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/weak-import-on-enum.c
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2012-04-14 14:01:31 +0000
committerDimitry Andric <dim@FreeBSD.org>2012-04-14 14:01:31 +0000
commitdbe13110f59f48b4dbb7552b3ac2935acdeece7f (patch)
treebe1815eb79b42ff482a8562b13c2dcbf0c5dcbee /test/Sema/weak-import-on-enum.c
parent9da628931ebf2609493570f87824ca22402cc65f (diff)
Vendor import of clang trunk r154661:vendor/clang/clang-trunk-r154661
Notes
Notes: svn path=/vendor/clang/dist/; revision=234287 svn path=/vendor/clang/clang-trunk-r154661/; revision=234288; tag=vendor/clang/clang-trunk-r154661
Diffstat (limited to 'test/Sema/weak-import-on-enum.c')
-rw-r--r--test/Sema/weak-import-on-enum.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Sema/weak-import-on-enum.c b/test/Sema/weak-import-on-enum.c
new file mode 100644
index 000000000000..3a2c0e5b3a14
--- /dev/null
+++ b/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
+};
+