summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-01-19 01:36:36 +0000
committerDevang Patel <dpatel@apple.com>2011-01-19 01:36:36 +0000
commitd2d6665c71ca6f8f8fc286870610c0985dbbf650 (patch)
treee3025ca56c0a3e7d34ab2658e6deb7e348ea65be /clang/test/CodeGenObjC
parent771ec8006cedf9be93a1ff9475577e1d4bc663b0 (diff)
downloadbcm5719-llvm-d2d6665c71ca6f8f8fc286870610c0985dbbf650.tar.gz
bcm5719-llvm-d2d6665c71ca6f8f8fc286870610c0985dbbf650.zip
Emit DW_TAG_lexical_scope to surround foreach.
llvm-svn: 123802
Diffstat (limited to 'clang/test/CodeGenObjC')
-rw-r--r--clang/test/CodeGenObjC/debug-info-foreach.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/debug-info-foreach.m b/clang/test/CodeGenObjC/debug-info-foreach.m
new file mode 100644
index 00000000000..c056e0e249d
--- /dev/null
+++ b/clang/test/CodeGenObjC/debug-info-foreach.m
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fobjc-default-synthesize-properties -emit-llvm -g %s -o %t
+// RUN: grep DW_TAG_lexical_block %t | count 5
+// rdar://8757124
+
+@class NSArray;
+
+void f(NSArray *a) {
+ id keys;
+ for (id thisKey in keys) {
+ }
+ for (id thisKey in keys) {
+ }
+}
OpenPOWER on IntegriCloud