diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr15785-1.c')
| -rw-r--r-- | gcc/testsuite/gcc.dg/pr15785-1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr15785-1.c b/gcc/testsuite/gcc.dg/pr15785-1.c index 5e79ec5..47cd3d7 100644 --- a/gcc/testsuite/gcc.dg/pr15785-1.c +++ b/gcc/testsuite/gcc.dg/pr15785-1.c @@ -11,6 +11,11 @@ void b (int x) { link_error (); } +void c (int x) { + if (!(- (~x) - x)) + link_error (); +} + void d (int x) { if (!(~ (-x) - x)) link_error (); @@ -29,6 +34,7 @@ void f (int x) { int main (int argc, char *argv[]) { a(argc); b(argc); + c(argc); d(argc); e(argc); f(argc); |
