1 // RUN: clang-cc %s -emit-llvm -o %t && 2 3 void t1(int *a) { 4 delete a; 5 } 6 7 struct S { 8 int a; 9 }; 10 11 // POD types. 12 void t3(S *s) { 13 delete s; 14 } 15 16 // Non-POD 17 struct T { 18 ~T(); 19 int a; 20 }; 21 22 void t4(T *t) { 23 // RUN: grep "call void @_ZN1TD1Ev" %t | count 1 24 delete t; 25 } 26