gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / pr35652.c
blob50ec3acf10a6532b7029f1f8fc9fcd324febbe4c
1 /* PR c++/35652: wrong location and duplicated warning.
2 { dg-do compile }
3 { dg-options "" } */
4 int bar()
6 const char *s = 'z' + "y"; /* { dg-warning "offset '122' outside bounds of constant string" } */
9 int g()
11 char str[2];
12 const char *p = str + sizeof(str);