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

From-SVN: r42883
This commit is contained in:
John David Anglin 2001-06-04 20:30:45 +00:00 committed by John David Anglin
parent b6d6aa84df
commit 3d3daefdd7
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2001-06-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
* gcc.c-torture/execute/20010604-1.c: New test.
2001-06-04 Loren J. Rittle <ljrittle@acm.org>
* gcc.c-torture/execute/ieee/rbug.x: XFAIL FreeBSD 5.x.

View File

@ -0,0 +1,14 @@
#include <stdbool.h>
int f (int a, int b, int c, _Bool d, _Bool e, _Bool f, char g)
{
if (g != 1 || d != true || e != true || f != true) abort ();
return a + b + c;
}
int main (void)
{
if (f (1, 2, -3, true, true, true, '\001'))
abort ();
exit (0);
}