libcxx

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

fopen.fail.cpp (551B)


      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 // REQUIRES: libcpp-has-no-global-filesystem-namespace
     11 
     12 #include <cstdio>
     13 
     14 int main() {
     15     // fopen is not available on systems without a global filesystem namespace.
     16     std::fopen("", "");
     17 }