llvm-project/clang/test/CodeGenCXX/debug-info-template-array.cpp
Eric Christopher 06d29572e1 If we don't have a complete type for the array type yet either then
just let the alignment be zero.

PR13531

llvm-svn: 161379
2012-08-07 00:48:43 +00:00

15 lines
237 B
C++

// 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>[]>();
}