summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/debug-info-foreach.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/debug-info-foreach.m')
-rw-r--r--test/CodeGenObjC/debug-info-foreach.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGenObjC/debug-info-foreach.m b/test/CodeGenObjC/debug-info-foreach.m
index c056e0e..89b409c 100644
--- a/test/CodeGenObjC/debug-info-foreach.m
+++ b/test/CodeGenObjC/debug-info-foreach.m
@@ -4,10 +4,17 @@
@class NSArray;
+int i;
void f(NSArray *a) {
id keys;
for (id thisKey in keys) {
+ int j = i;
+ ++j;
+ i = j;
}
for (id thisKey in keys) {
+ int k = i;
+ ++k;
+ i = k;
}
}
OpenPOWER on IntegriCloud