aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Rewriter
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-04-03 19:11:21 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-04-03 19:11:21 +0000
commit3a65ce3a5687aaa4468cc69fd3a3869675ceb6a3 (patch)
tree7e160f59bbf995ef28d09663c26bb519eed1fb0d /clang/test/Rewriter
parent9cad53cfeceed2ef75aa17f0553edd27afd2e950 (diff)
downloadllvm-3a65ce3a5687aaa4468cc69fd3a3869675ceb6a3.zip
llvm-3a65ce3a5687aaa4468cc69fd3a3869675ceb6a3.tar.gz
llvm-3a65ce3a5687aaa4468cc69fd3a3869675ceb6a3.tar.bz2
Objective-C modern rewriter. Fixes a bug
rewriting typedef for a qualified object type and also when two declarations happen to be on the same line. // rdar://13562505 llvm-svn: 178680
Diffstat (limited to 'clang/test/Rewriter')
-rw-r--r--clang/test/Rewriter/rewrite-modern-qualified-type.mm11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Rewriter/rewrite-modern-qualified-type.mm b/clang/test/Rewriter/rewrite-modern-qualified-type.mm
new file mode 100644
index 0000000..53e0d23
--- /dev/null
+++ b/clang/test/Rewriter/rewrite-modern-qualified-type.mm
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fms-extensions -rewrite-objc %s -o %t-modern-rw.cpp
+// RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D_Bool=bool -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp
+// rdar://13562505
+
+@protocol OS_dispatch_object @end
+
+@interface NSObject @end
+
+@protocol OS_dispatch_queue <OS_dispatch_object> @end typedef NSObject<OS_dispatch_queue> *dispatch_queue_t;
+
+typedef id<OS_dispatch_queue> dispatch_queue_i;