diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.mike/p5958.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.mike/p5958.C | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p5958.C b/gcc/testsuite/g++.old-deja/g++.mike/p5958.C new file mode 100644 index 000000000..666a44945 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.mike/p5958.C @@ -0,0 +1,28 @@ +// { dg-do run } +// { dg-options "-ansi" } +// prms-id: 5958 + +class A { }; + +main() { + int i = 1; + if (1 not_eq 1) + return 1; + if (not (1 and 1)) + return 1; + if (not (1 or 1)) + return 1; + if (compl ~0) + return 1; + if (1 bitand 2) + return 1; + if (not (1 bitor 2)) + return 1; + if (1 xor 1) + return 1; + i and_eq 1; + i or_eq 2; + i xor_eq 4; + if (i not_eq 7) + return 1; +} |