summaryrefslogtreecommitdiff
path: root/clang/test/CXX/over/over.built/p1.cpp
blob: 6000f5b01ca41bdde2cb93608177862cd411aacc (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 -fsyntax-only -verify %s

enum E1 { one };
enum E2 { two };

bool operator >= (E1, E1) {
  return false;
}

bool operator >= (E1, const E2) {
  return false;
}

bool test(E1 a, E1 b, E2 c) {
  return a >= b || a >= c;
}