aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CodeGenCXX/debug-info-vla-range.cpp9
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;