aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p5958.C
blob: 20d45f264d037779f09f96b2f7d1be1b0e5072eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Special g++ 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;
}