mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 08:26:08 +00:00
18 lines
457 B
C++
18 lines
457 B
C++
// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify=both,expected -std=c++11 %s
|
|
// RUN: %clang_cc1 -verify=both,ref -std=c++11 %s
|
|
// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify=both,expected -std=c++98 %s
|
|
// RUN: %clang_cc1 -verify=both,ref -std=c++98 %s
|
|
|
|
|
|
|
|
// expected-no-diagnostics
|
|
// ref-no-diagnostics
|
|
|
|
|
|
/// Rejected in c++98
|
|
#if __cplusplus >= 201103L
|
|
constexpr _Atomic(bool) B = true;
|
|
static_assert(B, "");
|
|
#endif
|
|
|