repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wno-narrowing1.C
blob
285f05a12490b76410238aed64cdf89c7f448d18
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
};