summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/packed11.C
blob: e75845d9315247cdfc84b4ee646a268ff7f92de4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/26670

struct nonpod {
  nonpod();
};

struct nonpod_pack {
  nonpod n;		      // { dg-warning "ignoring packed attribute" }
} __attribute__ ((packed));

struct nonpod_pack2 {
  nonpod_pack p;	      // { dg-warning "ignoring packed attribute" }
} __attribute__ ((packed));