mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 09:58:59 +08:00
New test case
From-SVN: r31098
This commit is contained in:
parent
7114581090
commit
7a555f6443
11
gcc/testsuite/gcc.c-torture/execute/991227-1.c
Normal file
11
gcc/testsuite/gcc.c-torture/execute/991227-1.c
Normal file
@ -0,0 +1,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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user