summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/991227-1.c
blob: 46b0951e9e3b150c711970b7f06756ad5a62beba (plain)
1
2
3
4
5
6
7
8
9
10
11
char* doit(int flag)
{
  return 1 + (flag ? "\0wrong\n" : "\0right\n");
}
int main()
{
  char *result = doit(0);
  if (*result == 'r' && result[1] == 'i')
    exit(0);
  abort();
}