* gcc.c-torture/execute/20010106-1.c: New test.
From-SVN: r38753
This commit is contained in:
parent
587f56c241
commit
a7c5235271
@ -1,3 +1,7 @@
|
||||
2001-01-06 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* gcc.c-torture/execute/20010106-1.c: New test.
|
||||
|
||||
2001-01-06 Joseph S. Myers <jsm28@cam.ac.uk>
|
||||
|
||||
* gcc.dg/format/format.exp: New file.
|
||||
|
30
gcc/testsuite/gcc.c-torture/execute/20010106-1.c
Normal file
30
gcc/testsuite/gcc.c-torture/execute/20010106-1.c
Normal file
@ -0,0 +1,30 @@
|
||||
/* Copyright 2001 Free Software Foundation
|
||||
Contributed by Alexandre Oliva <aoliva@redhat.com> */
|
||||
|
||||
int f(int i) {
|
||||
switch (i)
|
||||
{
|
||||
case -2:
|
||||
return 33;
|
||||
case -1:
|
||||
return 0;
|
||||
case 0:
|
||||
return 7;
|
||||
case 1:
|
||||
return 4;
|
||||
case 2:
|
||||
return 3;
|
||||
case 3:
|
||||
return 15;
|
||||
case 4:
|
||||
return 9;
|
||||
default:
|
||||
abort ();
|
||||
}
|
||||
}
|
||||
|
||||
int main() {
|
||||
if (f(-1))
|
||||
abort ();
|
||||
exit (0);
|
||||
}
|
Loading…
Reference in New Issue
Block a user