| 1 |
// PR c++/13983, c++/17519 |
| 2 |
// The typedef and the array were causing us to miss that A<int> is |
| 3 |
// a packed type. |
| 4 |
|
| 5 |
template <class T> |
| 6 |
struct A { |
| 7 |
A(); |
| 8 |
} __attribute__((packed)); |
| 9 |
|
| 10 |
typedef A<int> Ai; |
| 11 |
|
| 12 |
struct B { |
| 13 |
Ai a[2]; |
| 14 |
} __attribute__((packed)); |