2 // { dg-shouldfail "asan" }
3 // { dg-options "-fsanitize=address -fno-sanitize-address-use-after-scope" }
10 static __attribute__ ((noinline)) int
14 return *(volatile int *) (ptr - 1);
17 __attribute__ ((noinline)) int
29 // { dg-output "ERROR: AddressSanitizer: stack-buffer-underflow on address.*(\n|\r\n|\r)" }
30 // { dg-output "READ of size . at.*" }
31 // { dg-output ".*'arg' \\(line 18\\) <== Memory access at offset \[0-9\]* underflows this variable.*" }