1 //===----------------------------------------------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // UNSUPPORTED: c++98, c++03
11
12 // <filesystem>
13
14
15 #include "filesystem_include.hpp"
16
17 using namespace fs;
18
19 struct ConvToPath {
operator fs::pathConvToPath20 operator fs::path() const {
21 return "";
22 }
23 };
24
main()25 int main() {
26 ConvToPath LHS, RHS;
27 (void)(LHS == RHS); // expected-error {{invalid operands to binary expression}}
28 (void)(LHS != RHS); // expected-error {{invalid operands to binary expression}}
29 (void)(LHS < RHS); // expected-error {{invalid operands to binary expression}}
30 (void)(LHS <= RHS); // expected-error {{invalid operands to binary expression}}
31 (void)(LHS > RHS); // expected-error {{invalid operands to binary expression}}
32 (void)(LHS >= RHS); // expected-error {{invalid operands to binary expression}}
33 }