Test that we emit a subrange type for vlas.
authorEric Christopher <echristo@apple.com>
Tue, 22 May 2012 18:04:48 +0000 (18:04 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 22 May 2012 18:04:48 +0000 (18:04 +0000)
Part of rdar://11457152

llvm-svn: 157269

clang/test/CodeGenCXX/debug-info-vla-range.cpp [new file with mode: 0644]

diff --git a/clang/test/CodeGenCXX/debug-info-vla-range.cpp b/clang/test/CodeGenCXX/debug-info-vla-range.cpp
new file mode 100644 (file)
index 0000000..476bf22
--- /dev/null
@@ -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;