summaryrefslogtreecommitdiff
path: root/clang/test/Rewriter/rewrite-foreach-7.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Rewriter/rewrite-foreach-7.m')
-rw-r--r--clang/test/Rewriter/rewrite-foreach-7.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Rewriter/rewrite-foreach-7.m b/clang/test/Rewriter/rewrite-foreach-7.m
new file mode 100644
index 0000000..8c9293f
--- /dev/null
+++ b/clang/test/Rewriter/rewrite-foreach-7.m
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -
+
+@class NSArray;
+int main() {
+ NSArray *foo;
+ for (Class c in foo) { }
+}