From f8c4643da7502d73b2d10780884ac22a39e55461 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 11 Feb 2014 21:16:44 +0000 Subject: [PATCH] Remove bad debug info test. This test case doesn't belong in Clang (it's testing IndVarSimplify) but in an effort to reproduce the test case this was intended to cover (by essentially reverting r134441) I wasn't able to reproduce the failure this test case should've produced. So I haven't ported this down to LLVM, instead I'm just deleting it. I suspect the test is just underconstrained, but I've no great interest in trying hard to fix it right now - if anyone else wants to, I'd be more than welcome to that. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201178 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/debug-info-iv.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 test/CodeGen/debug-info-iv.c diff --git a/test/CodeGen/debug-info-iv.c b/test/CodeGen/debug-info-iv.c deleted file mode 100644 index 7511f9d58b..0000000000 --- a/test/CodeGen/debug-info-iv.c +++ /dev/null @@ -1,36 +0,0 @@ -// RUN: %clang_cc1 -triple x86_64-apple-darwin -Os -S -g -o - %s | FileCheck %s -// REQUIRES: x86-registered-target - -int calculate(int); -static void test_indvars(int *Array1, int Array2[100][200]) { - unsigned i, j; - Array1[1] = Array2[3][6] = 12345; - - for (i = 0; i < 100; i+=2) - Array1[i] = i; /* Step by non-unit amount */ - - for (i = 3; i < 103; i++) - Array1[i] = i+4; /* Step with an offset */ - - 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 31 - for (i=0; i < 100; i+=2) - for (j=0; j < 200; j++) - sum += Array[i][j]; - - return calculate(sum); -} -- 2.40.0