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 #include "filesystem_include.hpp"
15
16 using namespace fs;
17
18 struct ConvToPath {
operator fs::pathConvToPath19 operator fs::path() const {
20 return "";
21 }
22 };
23
main()24 int main() {
25 ConvToPath LHS, RHS;
26 (void)(LHS / RHS); // expected-error {{invalid operands to binary expression}}
27 }