]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pr81779.c
asan: Fix ICE during instrumentation of returns_twice calls [PR112709]
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr81779.c
CommitLineData
2be4dfcb
MP
1/* PR c/81779 */
2/* { dg-do compile } */
3/* { dg-options "-Wdeclaration-after-statement" } */
4
5#include <stdbool.h>
6
7bool
8f2 (char *p)
9{
10 if (!p)
11 return false;
12
13 bool ret = true; /* { dg-warning "ISO C90 forbids mixed declarations and code" } */
14 return ret;
15}