summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/ignore-weakimport-method.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-05-04 19:35:12 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-05-04 19:35:12 +0000
commit60637985de74e89e4e47e1e71be3ffbf29592845 (patch)
tree770a4fbc24fe767c30440954eac3571d46f19e8a /clang/test/SemaObjC/ignore-weakimport-method.m
parent71fb950b73afbeba01e870adfc62a0d03a9f80c6 (diff)
downloadbcm5719-llvm-60637985de74e89e4e47e1e71be3ffbf29592845.tar.gz
bcm5719-llvm-60637985de74e89e4e47e1e71be3ffbf29592845.zip
ignore weak_import attribute on objc method decls.
llvm-svn: 70901
Diffstat (limited to 'clang/test/SemaObjC/ignore-weakimport-method.m')
-rw-r--r--clang/test/SemaObjC/ignore-weakimport-method.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/ignore-weakimport-method.m b/clang/test/SemaObjC/ignore-weakimport-method.m
new file mode 100644
index 00000000000..369d9023acf
--- /dev/null
+++ b/clang/test/SemaObjC/ignore-weakimport-method.m
@@ -0,0 +1,7 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+@interface foo
++ (void) cx __attribute__((weak_import));
+- (void) x __attribute__((weak_import));
+@end
+
OpenPOWER on IntegriCloud