YouCompleteMe/cpp/llvm/tools/clang/test/CXX/over/over.built/p1.cpp
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

17 lines
239 B
C++

// 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;
}