summaryrefslogtreecommitdiff
path: root/clang/test/CXX/over/over.built/p1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CXX/over/over.built/p1.cpp')
-rw-r--r--clang/test/CXX/over/over.built/p1.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/CXX/over/over.built/p1.cpp b/clang/test/CXX/over/over.built/p1.cpp
new file mode 100644
index 0000000..6000f5b
--- /dev/null
+++ b/clang/test/CXX/over/over.built/p1.cpp
@@ -0,0 +1,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;
+}