]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/990506-0.c
asan: Fix ICE during instrumentation of returns_twice calls [PR112709]
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / 990506-0.c
1 /* Verify that a diagnostic is issued without crashing due to
2 --enable-checking catching a bug in the C front end. */
3 /* { dg-do compile } */
4 x()
5 {
6 foo (i);
7 /* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } .-1 } */
8 /* { dg-message "function it appears in" "reminder message" { target *-*-* } .-2 } */
9 }