PR middle-end/77674
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wno-narrowing1.C
blob285f05a12490b76410238aed64cdf89c7f448d18
1 // PR c++/69872
2 // { dg-options "-Wall -Wextra -pedantic -Wno-narrowing" }
4 struct s { int x, y; };
5 short offsets[1] = {
6   ((char*) &(((struct s*)16)->y) - (char *)16),  // { dg-bogus "note" }
7 };