diff options
author | Eric Christopher <echristo@apple.com> | 2012-05-22 18:04:48 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-05-22 18:04:48 +0000 |
commit | f5de6c95c935e7d03803e8aa84373cc06d9cb6ab (patch) | |
tree | 4fb09248edd7bde3b7a266edbc0743cadf8fae34 | |
parent | bf78267de5e77e110124d2fcacc73777c97625f5 (diff) |
Test that we emit a subrange type for vlas.
Part of rdar://11457152
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157269 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGenCXX/debug-info-vla-range.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-vla-range.cpp b/test/CodeGenCXX/debug-info-vla-range.cpp new file mode 100644 index 0000000000..476bf2285e --- /dev/null +++ b/test/CodeGenCXX/debug-info-vla-range.cpp @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s + +// CHECK: DW_TAG_subrange_type + +struct StructName { + int member[]; +}; + +struct StructName SN; |