blob: 305327bbe09953fe4f5feef87a22f06ed783a9ea [file] [log] [blame]
Eric Christopherc7fb7482012-08-07 00:48:43 +00001// RUN: %clang -emit-llvm -g -S %s -o -
2// PR13531
3template <typename>
4struct unique_ptr {
5 unique_ptr() {}
6};
7
8template <unsigned>
9struct Vertex {};
10
11void crash() // Asserts
12{
13 unique_ptr<Vertex<2>[]> v = unique_ptr<Vertex<2>[]>();
14}