aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr59363.c
blob: a4e1240354339b1e75f4db94ececc74f617fea3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* PR target/59363 */
/* { dg-do run } */
/* { dg-options "-O2 -mtune=amdfam10" } */

typedef struct {
  int ctxlen;
  long interhunkctxlen;
  int flags;
  long find_func;
  void *find_func_priv;
  int hunk_func;
} xdemitconf_t;

__attribute__((noinline))
int xdi_diff(xdemitconf_t *xecfg) {
  if (xecfg->hunk_func == 0)
    __builtin_abort();
  return 0;
}
int main() {
  xdemitconf_t xecfg = {0};
  xecfg.hunk_func = 1;
  return xdi_diff(&xecfg);
}