summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/vla.c
diff options
context:
space:
mode:
Diffstat (limited to 'debuginfo-tests/vla.c')
-rw-r--r--debuginfo-tests/vla.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/debuginfo-tests/vla.c b/debuginfo-tests/vla.c
deleted file mode 100644
index 9c8e2771533..00000000000
--- a/debuginfo-tests/vla.c
+++ /dev/null
@@ -1,24 +0,0 @@
-// This test case verifies the debug location for variable-length arrays.
-// RUN: %clang %target_itanium_abi_host_triple -O0 -g %s -c -o %t.o
-// RUN: %clang %target_itanium_abi_host_triple %t.o -o %t.out
-// RUN: %test_debuginfo %s %t.out
-//
-// DEBUGGER: break 18
-// DEBUGGER: r
-// DEBUGGER: p vla[0]
-// CHECK: 23
-// DEBUGGER: p vla[1]
-// CHECK: 22
-
-void init_vla(int size) {
- int i;
- int vla[size];
- for (i = 0; i < size; i++)
- vla[i] = size-i;
- vla[0] = size; // line 18
-}
-
-int main(int argc, const char **argv) {
- init_vla(23);
- return 0;
-}
OpenPOWER on IntegriCloud