mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 06:58:53 +08:00
Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au> * gcc.c-torture/execute/20000205-1.c: New. From-SVN: r31815
This commit is contained in:
parent
75874af96c
commit
cc6c6c234f
@ -1,3 +1,7 @@
|
||||
2000-02-05 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
|
||||
|
||||
* gcc.c-torture/execute/20000205-1.c: New.
|
||||
|
||||
2000-02-03 Nathan Sidwell <nathan@acm.org>
|
||||
|
||||
* g++.old-deja/g++.jason/cast3.C: Return void.
|
||||
|
17
gcc/testsuite/gcc.c-torture/execute/20000205-1.c
Normal file
17
gcc/testsuite/gcc.c-torture/execute/20000205-1.c
Normal file
@ -0,0 +1,17 @@
|
||||
static int f (int a)
|
||||
{
|
||||
if (a == 0)
|
||||
return 0;
|
||||
do
|
||||
if (a & 128)
|
||||
return 1;
|
||||
while (f (0));
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
if (f (~128))
|
||||
abort ();
|
||||
exit (0);
|
||||
}
|
Loading…
Reference in New Issue
Block a user