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