2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / align-1.c
blob302d7d777a1f7bf1ac022f6f3ab88171649054bc
1 /* PR java/10145
2 Test that requesting an alignment of 1 does not increase the alignment
3 of a long long field.
5 { dg-do run }
6 { dg-options "" }
7 */
9 struct A
11 char c;
12 long long i;
15 struct B
17 char c;
18 long long i __attribute ((__aligned__ (1)));
21 int main ()
23 if (sizeof (struct A) != sizeof (struct B))
24 abort ();
25 return 0;