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 | 8b3304da56822ae35fd223eafd2d0c558aafabc4 (patch) | |
tree | 8f3957b161113f1b71e085b4db2f6962a947a241 | |
parent | 011a363c852e878c002454ac2aea0542e0a8c17a (diff) | |
download | bcm5719-llvm-8b3304da56822ae35fd223eafd2d0c558aafabc4.tar.gz bcm5719-llvm-8b3304da56822ae35fd223eafd2d0c558aafabc4.zip |
Test that we emit a subrange type for vlas.
Part of rdar://11457152
llvm-svn: 157269
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-vla-range.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-vla-range.cpp b/clang/test/CodeGenCXX/debug-info-vla-range.cpp new file mode 100644 index 00000000000..476bf2285ef --- /dev/null +++ b/clang/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; |