☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wno-narrowing1.C
☽
☼
gcc/testsuite/g++.dg/warn/Wno-narrowing1.C
code
plain
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
};