summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr33631.c
blob: 840fd0dc482c69dd60a50fbe6c3f1495ca801c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
typedef union
{
  int __lock;
} pthread_mutex_t;

extern void abort (void);

int main()
{
    struct { int c; pthread_mutex_t m; } r = { .m = 0 };
    if (r.c != 0)
      abort ();
    return 0;
}