Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.mike/p5958.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { dg-do run } |
2 // { dg-options "-ansi" } | |
3 // prms-id: 5958 | |
4 | |
5 class A { }; | |
6 | |
131 | 7 int |
111 | 8 main() { |
9 int i = 1; | |
10 if (1 not_eq 1) | |
11 return 1; | |
12 if (not (1 and 1)) | |
13 return 1; | |
14 if (not (1 or 1)) | |
15 return 1; | |
16 if (compl ~0) | |
17 return 1; | |
18 if (1 bitand 2) | |
19 return 1; | |
20 if (not (1 bitor 2)) | |
21 return 1; | |
22 if (1 xor 1) | |
23 return 1; | |
24 i and_eq 1; | |
25 i or_eq 2; | |
26 i xor_eq 4; | |
27 if (i not_eq 7) | |
28 return 1; | |
29 } |