Commit a7c52352 by Alexandre Oliva Committed by Alexandre Oliva

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

From-SVN: r38753
parent 587f56c2
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.
......
/* 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment