aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/init-pad-1.c
blob: 801f93813e3ad976c3ebd9cd381ebe254bd19cd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-Og -fdump-tree-gimple" } */

struct s {
  short a : 3;
  short b : 3;
  char  c;
};

extern void g(struct s *);

void f() {
  struct s x = { 0, 0, 1 };
  g (&x);
}

/* { dg-final { scan-tree-dump-times "= {};" 1 "gimple" } } */
/* { dg-final { scan-tree-dump-not "= 0;" "gimple" } } */