gcc/testsuite/gcc.dg/pr70174.c
raw| 1 | /* PR rtl-optimization/70174 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-fpermissive -O2" } */ |
| 4 | |
| 5 | struct S { int f : 4; } a; |
| 6 | |
| 7 | void |
| 8 | foo (void) |
| 9 | { |
| 10 | a.f = foo; /* { dg-warning "assignment to 'signed char:4' from 'void \\(\\*\\)\\(void\\)' makes integer from pointer without a cast" } */ |
| 11 | } |