Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / g++.dg / asan / use-after-scope-types-3.C
blob3350c69c6ae68d8df7bfc4409e154b9b7273c9e0
1 // { dg-do run }
2 // { dg-shouldfail "asan" }
4 #include "use-after-scope-types.h"
6 int main()
8   using Tests = void (*)();
9   Tests t = &test<void *>;
10   t();
12   return 0;
15 // { dg-output "ERROR: AddressSanitizer: stack-use-after-scope on address.*(\n|\r\n|\r)" }
16 // { dg-output "WRITE of size " }
17 // { dg-output ".*'x' <== Memory access at offset \[0-9\]* is inside this variable.*" }