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