brintos

brintos / llvm-project-archived public Read only

0
0
Text · 457 B · c0476c3 Raw
18 lines · cpp
1// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify=both,expected -std=c++11 %s2// RUN: %clang_cc1 -verify=both,ref -std=c++11 %s3// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify=both,expected -std=c++98 %s4// RUN: %clang_cc1 -verify=both,ref -std=c++98 %s5 6 7 8// expected-no-diagnostics9// ref-no-diagnostics10 11 12/// Rejected in c++9813#if __cplusplus >= 201103L14constexpr _Atomic(bool) B = true;15static_assert(B, "");16#endif17 18