2 /* { dg-shouldfail "asan" } */
3 /* { dg-skip-if "" { *-*-* } { "*" } { "-O0" } } */
7 typedef __SIZE_TYPE__ size_t;
8 inline void * operator new (size_t, void *p) { return p; }
18 operator vec() { return vec(); }
24 A(): value2 (vNULL), value3 (vNULL) {}
32 int *array = (int *)malloc (sizeof (int) * 1);
33 A *a = new (array) A ();
37 /* { dg-output "ERROR: AddressSanitizer: heap-buffer-overflow.*(\n|\r\n|\r)" } */
38 /* { dg-output " #0 0x\[0-9a-f\]+ +in A::A()" } */