repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[docs] Fix build-docs.sh
[llvm-project.git]
/
compiler-rt
/
test
/
lsan
/
TestCases
/
new_array_with_dtor_0.cpp
blob
59259616e827c995431a08c6a1b1932b421c4308
1
// Regression test:
2
// https://code.google.com/p/address-sanitizer/issues/detail?id=257
3
// RUN: %clangxx_lsan %s -o %t && %run %t 2>&1 | FileCheck %s
4
5
#include <stdio.h>
6
7
struct
T
{
8
~
T
() {
printf
(
"~T
\n
"
); }
9
};
10
11
T
*
t
;
12
13
int
main
(
int
argc
,
char
**
argv
) {
14
t
=
new
T
[
argc
-
1
];
15
printf
(
"OK
\n
"
);
16
}
17
18
// CHECK: OK
19