Files
clang-p2996/clang/test/Driver/unstable-flag.cpp
Egor Zhdan 3cdc1c155b [Clang] Add -funstable flag to enable unstable and experimental features
This new flag enables `__has_feature(cxx_unstable)` that would replace libc++ macros for individual unstable/experimental features, e.g. `_LIBCPP_HAS_NO_INCOMPLETE_RANGES` or `_LIBCPP_HAS_NO_INCOMPLETE_FORMAT`.

This would make it easier and more convenient to opt-in into all libc++ unstable features at once.

Differential Revision: https://reviews.llvm.org/D120160
2022-03-01 12:35:20 +00:00

6 lines
125 B
C++

// RUN: %clang -funstable -### %s 2>&1 | FileCheck %s
// CHECK: -funstable
// CHECK: -fcoroutines-ts
// CHECK: -fmodules-ts