libcxx

libcxx mirror with random patches
git clone https://git.neptards.moe/neptards/libcxx.git
Log | Files | Refs

append_op.fail.cpp (651B)


      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 {
     19   operator fs::path() const {
     20     return "";
     21   }
     22 };
     23 
     24 int main() {
     25   ConvToPath LHS, RHS;
     26   (void)(LHS / RHS); // expected-error {{invalid operands to binary expression}}
     27 }