summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/empty17.h
blob: 9cf72baca2e1a2f3e632ac6398b0ec1fd61daa9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifdef __cplusplus
struct A1
{
  void foo (void);
  unsigned int : 15;
};
struct A2
{
  void bar (void);
  unsigned int : 15;
};
struct dummy : A1, A2
{
  unsigned int : 15;
};
#else
struct dummy {};
#endif

struct foo
{
  int i1;
  int i2;
  int i3;
  int i4;
  int i5;
};