summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/Wno-narrowing1.C
blob: 285f05a12490b76410238aed64cdf89c7f448d18 (plain)
1
2
3
4
5
6
7
// PR c++/69872
// { dg-options "-Wall -Wextra -pedantic -Wno-narrowing" }

struct s { int x, y; };
short offsets[1] = {
  ((char*) &(((struct s*)16)->y) - (char *)16),  // { dg-bogus "note" }
};