summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p5958.C
blob: 666a449450920fcd4b60b93e9c7f939cbbb16f21 (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
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;
}