summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/compat/pr38736_x.c
blob: aeab257aae9ff7276aa265498a0d19b386b30f76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR target/38736 */
/* { dg-options "-O2" } */

struct alignment_test_struct
{
  char space[4] __attribute__((__aligned__));
};

extern int aligned_x (void);

int
aligned_x (void)
{
  return __alignof__(struct alignment_test_struct);
}