summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-05-22 18:04:48 +0000
committerEric Christopher <echristo@apple.com>2012-05-22 18:04:48 +0000
commit8b3304da56822ae35fd223eafd2d0c558aafabc4 (patch)
tree8f3957b161113f1b71e085b4db2f6962a947a241
parent011a363c852e878c002454ac2aea0542e0a8c17a (diff)
downloadbcm5719-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.cpp9
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;
OpenPOWER on IntegriCloud