summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/empty1.c
blob: 89b2de1e903639f85bf165395b36c42b30f87af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do run } */
/* { dg-options "" } */

struct S { int : 0; };
union U { int : 0; };

int main () {
  if (__alignof__ (struct S) != __alignof__ (union U))
    return 1;
  return 0;
}