8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/991227-1.c
Martin v. Löwis 7a555f6443 New test case
From-SVN: r31098
1999-12-27 11:36:24 +00:00

12 lines
181 B
C

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();
}