summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/debug-info-template-array.cpp
blob: 305327bbe09953fe4f5feef87a22f06ed783a9ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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>[]>();
}