gcc/testsuite/gcc.dg/pr69156.c
raw| 1 | /* PR tree-optimization/69156 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-std=gnu17 -fpermissive -O1 -fno-tree-ccp" } */ |
| 4 | |
| 5 | _Bool |
| 6 | foo () |
| 7 | { |
| 8 | _Bool (*f) () = __builtin_abs; /* { dg-warning "initialization of '_Bool \\(\\*\\)\\(\\)' from pointer to .__builtin_abs. with incompatible type .int \\\(\\\*\\\)." } */ |
| 9 | return f (0); |
| 10 | } |