summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/930725-1.c
blob: 3bd738ca08a92438a70bf5d7ab61436b75ae0092 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
int v;

char *
g ()
{
  return "";
}

char *
f ()
{
  return (v == 0 ? g () : "abc");
}

main ()
{
  v = 1;
  if (!strcmp (f (), "abc"))
    exit (0);
  abort();
}