Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wno-narrowing1.C

raw
1 // PR c++/69872
2 // { dg-options "-Wall -Wextra -pedantic -Wno-narrowing" }
3
4 struct s { int x, y; };
5 short offsets[1] = {
6 ((char*) &(((struct s*)16)->y) - (char *)16), // { dg-bogus "note" }
7 };