1*06d29572SEric Christopher // RUN: %clang -emit-llvm -g -S %s -o - 2*06d29572SEric Christopher // PR13531 3*06d29572SEric Christopher template <typename> 4*06d29572SEric Christopher struct unique_ptr { unique_ptrunique_ptr5*06d29572SEric Christopher unique_ptr() {} 6*06d29572SEric Christopher }; 7*06d29572SEric Christopher 8*06d29572SEric Christopher template <unsigned> 9*06d29572SEric Christopher struct Vertex {}; 10*06d29572SEric Christopher crash()11*06d29572SEric Christophervoid crash() // Asserts 12*06d29572SEric Christopher { 13*06d29572SEric Christopher unique_ptr<Vertex<2>[]> v = unique_ptr<Vertex<2>[]>(); 14*06d29572SEric Christopher } 15