diff options
author | David Blaikie <dblaikie@gmail.com> | 2016-08-22 17:49:56 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2016-08-22 17:49:56 +0000 |
commit | 87173f108ab976f64f4577e3bfce1d300fcb0b50 (patch) | |
tree | c4ad8e23a17e92f902e7fa4016275363b0864b01 /clang/test/CodeGenCXX/debug-info-vla.cpp | |
parent | c41fcaf8aa1e0fce242fcf0af55d1d8113e67bcb (diff) | |
download | bcm5719-llvm-87173f108ab976f64f4577e3bfce1d300fcb0b50.tar.gz bcm5719-llvm-87173f108ab976f64f4577e3bfce1d300fcb0b50.zip |
PR29086: DebugInfo: Improve support for fixed array dimensions in variable length arrays
llvm-svn: 279445
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-vla.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-vla.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-vla.cpp b/clang/test/CodeGenCXX/debug-info-vla.cpp new file mode 100644 index 00000000000..024ee3a6f9a --- /dev/null +++ b/clang/test/CodeGenCXX/debug-info-vla.cpp @@ -0,0 +1,14 @@ +// RUN: %clang -target x86_64-unknown-unknown -fverbose-asm -g -O0 -S -emit-llvm %s -o - | FileCheck %s + + +void f(int m) { + int x[3][m]; +} + +// CHECK: !DICompositeType(tag: DW_TAG_array_type, +// CHECK-NOT: size: +// CHECK-SAME: align: 32 +// CHECK-SAME: elements: [[ELEM_TYPE:![0-9]+]] +// CHECK: [[ELEM_TYPE]] = !{[[SUB1:.*]], [[SUB2:.*]]} +// CHECK: [[SUB1]] = !DISubrange(count: 3) +// CHECK: [[SUB2]] = !DISubrange(count: -1) |