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