// RUN: %clang_cc1 -emit-llvm-only %s
// this used to crash due to templ<int>'s dtor not being marked as used by the
// new expression in func()
structnon_trivial{non_trivial(){}~non_trivial(){}};template<typename T >classtempl{
non_trivial n;};voidfunc(){new templ<int>[1][1];}