summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr40026.c
blob: 0d08f0dc8ac8e69d2c3b83e90f7058e89a04eefb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
typedef struct {
    unsigned long bits;
} S;
struct T {
    S span;
    int flags;
};

struct T f(int x)
{
  return (struct T) {
      .span = (S) { 0UL },
      .flags = (x ? 256 : 0),
  };
}