summaryrefslogtreecommitdiffstats
path: root/test/FixIt/fixit-objc.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/FixIt/fixit-objc.m')
-rw-r--r--test/FixIt/fixit-objc.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/FixIt/fixit-objc.m b/test/FixIt/fixit-objc.m
new file mode 100644
index 0000000..baef233
--- /dev/null
+++ b/test/FixIt/fixit-objc.m
@@ -0,0 +1,8 @@
+// RUN: clang-cc -fsyntax-only -fixit-at=fixit-at.c:3:1 %s -o %t.m &&
+// RUN: clang-cc -verify %t.m
+
+@protocol X;
+
+void foo() {
+ <X> *P; // should be fixed to 'id<X>'.
+}
OpenPOWER on IntegriCloud