annotate gcc/testsuite/g++.dg/ext/packed10.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // PR c++/13983, c++/17519
kono
parents:
diff changeset
2 // The typedef and the array were causing us to miss that A<int> is
kono
parents:
diff changeset
3 // a packed type.
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 template <class T>
kono
parents:
diff changeset
6 struct A {
kono
parents:
diff changeset
7 A();
kono
parents:
diff changeset
8 } __attribute__((packed));
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 typedef A<int> Ai;
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 struct B {
kono
parents:
diff changeset
13 Ai a[2];
kono
parents:
diff changeset
14 } __attribute__((packed));