From ab461298d73ddaa769e33b2b65cbe5f4ab2b952b Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 22 Dec 2000 20:05:09 +0000 Subject: [PATCH] 20001222-1.c: New test. * gcc.c-torture/compile/20001222-1.c: New test. * gcc.c-torture/compile/20001222-1.x: Xfail. From-SVN: r38469 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.c-torture/compile/20001222-1.c | 6 ++++++ gcc/testsuite/gcc.c-torture/compile/20001222-1.x | 2 ++ 3 files changed, 13 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/20001222-1.c create mode 100644 gcc/testsuite/gcc.c-torture/compile/20001222-1.x diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6235cf020bc..ae0a8925f8b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2000-12-22 Joseph S. Myers + + * gcc.c-torture/compile/20001222-1.c: New test. + * gcc.c-torture/compile/20001222-1.x: Xfail. + Fri Dec 22 06:45:03 2000 Alexandre Oliva * gcc.c-torture/execute/comp-goto-2.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/20001222-1.c b/gcc/testsuite/gcc.c-torture/compile/20001222-1.c new file mode 100644 index 00000000000..de97eeef70e --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20001222-1.c @@ -0,0 +1,6 @@ +/* Testcase for PR c/1501. */ +double __complex__ +f (void) +{ + return ~(1.0 + 2.0i); +} diff --git a/gcc/testsuite/gcc.c-torture/compile/20001222-1.x b/gcc/testsuite/gcc.c-torture/compile/20001222-1.x new file mode 100644 index 00000000000..f41cdc29913 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20001222-1.x @@ -0,0 +1,2 @@ +set torture_compile_xfail "*-*-*" +return 0