* gcc.c-torture/execute/20010106-1.c: New test.

From-SVN: r38753
This commit is contained in:
Alexandre Oliva 2001-01-06 23:15:05 +00:00 committed by Alexandre Oliva
parent 587f56c241
commit a7c5235271
2 changed files with 34 additions and 0 deletions

View File

@ -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.

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