diff options
author | John David Anglin <dave@hiauly1.hia.nrc.ca> | 2001-06-04 20:30:45 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2001-06-04 20:30:45 +0000 |
commit | 3d3daefdd7302eb02f42c355e01b686caf45e30c (patch) | |
tree | 5e0f86b260642a32f0b32c01d780ad43fa1ea574 | |
parent | b6d6aa84dfb2b247aa91f50e5e1b11107b870268 (diff) | |
download | gcc-3d3daefdd7302eb02f42c355e01b686caf45e30c.zip gcc-3d3daefdd7302eb02f42c355e01b686caf45e30c.tar.gz gcc-3d3daefdd7302eb02f42c355e01b686caf45e30c.tar.bz2 |
* gcc.c-torture/execute/20010604-1.c: New test.
From-SVN: r42883
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20010604-1.c | 14 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2f81f4c..03a8b52 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/gcc.c-torture/execute/20010604-1.c b/gcc/testsuite/gcc.c-torture/execute/20010604-1.c new file mode 100644 index 0000000..e0deaf5 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20010604-1.c @@ -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); +} |