xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/debug-info-template-array.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang -emit-llvm -g -S %s -o -
2*f4a2713aSLionel Sambuc // PR13531
3*f4a2713aSLionel Sambuc template <typename>
4*f4a2713aSLionel Sambuc struct unique_ptr {
unique_ptrunique_ptr5*f4a2713aSLionel Sambuc   unique_ptr() {}
6*f4a2713aSLionel Sambuc };
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc template <unsigned>
9*f4a2713aSLionel Sambuc struct Vertex {};
10*f4a2713aSLionel Sambuc 
crash()11*f4a2713aSLionel Sambuc void crash() // Asserts
12*f4a2713aSLionel Sambuc {
13*f4a2713aSLionel Sambuc   unique_ptr<Vertex<2>[]> v = unique_ptr<Vertex<2>[]>();
14*f4a2713aSLionel Sambuc }
15