• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // <experimental/filesystem>
10 
11 // #define __cpp_lib_experimental_filesystem 201406L
12 
13 #include <experimental/filesystem>
14 #include "test_macros.h"
15 
16 #if TEST_STD_VER >= 11
17 #ifndef __cpp_lib_experimental_filesystem
18 #error Filesystem feature test macro is not defined  (__cpp_lib_experimental_filesystem)
19 #elif __cpp_lib_experimental_filesystem != 201406L
20 #error Filesystem feature test macro has an incorrect value (__cpp_lib_experimental_filesystem)
21 #endif
22 #else // TEST_STD_VER < 11
23 #ifdef __cpp_lib_experimental_filesystem
24 #error Filesystem feature test macro should not be defined in c++03
25 #endif
26 #endif
27 
main(int,char **)28 int main(int, char**) {
29   return 0;
30 }
31