Skip to content

Commit 38f210b

Browse files
committed
Added a test
1 parent c15ec2f commit 38f210b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// RUN: %clangxx_asan -O0 %s -o %t
2+
// RUN: not %run %t 2>&1 | FileCheck %s
3+
4+
int main()
5+
{
6+
int x;
7+
{
8+
int x;
9+
delete &x;
10+
}
11+
}
12+
13+
// CHECK: [32, 36) 'x'

0 commit comments

Comments
 (0)