summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr15785-1.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2006-06-08 08:49:19 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2006-06-08 08:49:19 +0000
commit2ba580f0af188faf1230b9d05821d94db7a0c2fe (patch)
tree4bf8760f5ecfc126786bc6da8fd99de0bb85f219 /gcc/testsuite/gcc.dg/pr15785-1.c
parent89c8b802150d5c659fbf9f00174721e67f1db7e8 (diff)
downloadgcc-2ba580f0af188faf1230b9d05821d94db7a0c2fe.tar.gz
2006-06-08 Richard Guenther <rguenther@suse.de>
PR middle-end/27116 * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR only, if overflow is defined and not trapping. (negate_expr): Likewise. * gcc.dg/torture/pr27116.c: New testcase. * gcc.dg/pr15785-1.c: Remove test for invalid transformation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114483 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr15785-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr15785-1.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/testsuite/gcc.dg/pr15785-1.c b/gcc/testsuite/gcc.dg/pr15785-1.c
index 47cd3d7b01b..5e79ec50bbb 100644
--- a/gcc/testsuite/gcc.dg/pr15785-1.c
+++ b/gcc/testsuite/gcc.dg/pr15785-1.c
@@ -11,11 +11,6 @@ void b (int x) {
link_error ();
}
-void c (int x) {
- if (!(- (~x) - x))
- link_error ();
-}
-
void d (int x) {
if (!(~ (-x) - x))
link_error ();
@@ -34,7 +29,6 @@ void f (int x) {
int main (int argc, char *argv[]) {
a(argc);
b(argc);
- c(argc);
d(argc);
e(argc);
f(argc);