16 lines · cpp
1// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify=both,expected %s2// RUN: %clang_cc1 -verify=both,ref %s3 4// both-no-diagnostics5 6extern const double Num;7extern const double Num = 12;8 9extern const int E;10constexpr int getE() {11 return E;12}13const int E = 10;14static_assert(getE() == 10);15 16