1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // UNSUPPORTED: c++03
10 
11 // <filesystem>
12 
13 #include "filesystem_include.h"
14 
15 using namespace fs;
16 
17 struct ConvToPath {
operator fs::pathConvToPath18   operator fs::path() const {
19     return "";
20   }
21 };
22 
main(int,char **)23 int main(int, char**) {
24   ConvToPath LHS, RHS;
25   (void)(LHS / RHS); // expected-error {{invalid operands to binary expression}}
26 
27   return 0;
28 }
29