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 // This test ensures that passing `-fexperimental-library` results in experimental 10 // library features being enabled. 11 12 // GCC does not support the -fexperimental-library flag 13 // UNSUPPORTED: gcc 14 15 // AppleClang does not support the -fexperimental-library flag yet 16 // UNSUPPORTED: apple-clang-14.0 17 18 // Clang on AIX currently pretends that it is Clang 15, even though it is not (as of writing 19 // this, LLVM 15 hasn't even been branched yet). 20 // UNSUPPORTED: clang-15 && buildhost=aix 21 22 // ADDITIONAL_COMPILE_FLAGS: -fexperimental-library 23 24 #include <version> 25 26 #ifdef _LIBCPP_HAS_NO_INCOMPLETE_FORMAT 27 # error "-fexperimental-library should enable <format>" 28 #endif 29