mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
* gcc.c-torture/execute/20010604-1.c: New test.
From-SVN: r42883
This commit is contained in:
parent
b6d6aa84df
commit
3d3daefdd7
@ -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.
|
||||
|
14
gcc/testsuite/gcc.c-torture/execute/20010604-1.c
Normal file
14
gcc/testsuite/gcc.c-torture/execute/20010604-1.c
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user