aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-08-07 00:48:43 +0000
committerEric Christopher <echristo@apple.com>2012-08-07 00:48:43 +0000
commitc7fb74806190220ba46bc175568f5c0edd49b810 (patch)
tree5a0ae3d4231c6c425a64f6f0ee57a7eccf59dfa9 /test
parent97d029305999f940869ff8eea42902bbd193f6d0 (diff)
If we don't have a complete type for the array type yet either then
just let the alignment be zero. PR13531 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161379 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGenCXX/debug-info-template-array.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-template-array.cpp b/test/CodeGenCXX/debug-info-template-array.cpp
new file mode 100644
index 0000000000..305327bbe0
--- /dev/null
+++ b/test/CodeGenCXX/debug-info-template-array.cpp
@@ -0,0 +1,14 @@
+// RUN: %clang -emit-llvm -g -S %s -o -
+// PR13531
+template <typename>
+struct unique_ptr {
+ unique_ptr() {}
+};
+
+template <unsigned>
+struct Vertex {};
+
+void crash() // Asserts
+{
+ unique_ptr<Vertex<2>[]> v = unique_ptr<Vertex<2>[]>();
+}