c++: make source_location follow DECL_RAMP_FN
[official-gcc.git] / gcc / testsuite / gcc.dg / Waddress.c
blobb26e7b1f3294710bef15d9982d5cb1638ab92592
1 /* PR c/36299 */
2 /* { dg-do compile } */
3 /* { dg-options "-Waddress" } */
5 int
6 foo(void)
8 char a[1];
9 return a == 0; // { dg-warning "-Waddress" }