diff options
Diffstat (limited to 'test/CodeGen/debug-info-iv.c')
-rw-r--r-- | test/CodeGen/debug-info-iv.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/CodeGen/debug-info-iv.c b/test/CodeGen/debug-info-iv.c index 92654738cfc5..1d9bf32c2cda 100644 --- a/test/CodeGen/debug-info-iv.c +++ b/test/CodeGen/debug-info-iv.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -triple x86_64-darwin-apple -Os -S -g -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple x86_64-apple-darwin -Os -S -g -o - %s | FileCheck %s int calculate(int); static void test_indvars(int *Array1, int Array2[100][200]) { @@ -14,22 +14,22 @@ static void test_indvars(int *Array1, int Array2[100][200]) { for (i = 13; i < 100; i++) for (j = 0; j < 100; j+=3) /* 2d array access */ Array2[i][j/3] = Array2[i][i]; -} +} int main() { int Array[100][200], i, j; double sum = 0.0; - + for (i=0; i < 100; i+=2) for (j=0; j < 200; j++) Array[i][j] = 0; test_indvars(Array[0], Array); -//CHECK: .loc 2 30 3 +//CHECK: .loc 2 30 8 for (i=0; i < 100; i+=2) for (j=0; j < 200; j++) sum += Array[i][j]; - + return calculate(sum); } |