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 Sambucvoid crash() // Asserts 12*f4a2713aSLionel Sambuc { 13*f4a2713aSLionel Sambuc unique_ptr<Vertex<2>[]> v = unique_ptr<Vertex<2>[]>(); 14*f4a2713aSLionel Sambuc } 15