[docs] Fix build-docs.sh
[llvm-project.git] / compiler-rt / test / lsan / TestCases / new_array_with_dtor_0.cpp
blob59259616e827c995431a08c6a1b1932b421c4308
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
5 #include <stdio.h>
7 struct T {
8 ~T() { printf("~T\n"); }
9 };
11 T *t;
13 int main(int argc, char **argv) {
14 t = new T[argc - 1];
15 printf("OK\n");
18 // CHECK: OK