Sign in
llvm
/
llvm-project
/
clang
/
2b1628c89c225f2131a06976576964d345e91f02
/
.
/
test
/
AST
/
ByteCode
/
extern.cpp
blob: a616269911a7eca8ac89273b74688cbdbe9cc290 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify=both,expected %s
// RUN: %clang_cc1 -verify=both,ref %s
// both-no-diagnostics
extern
const
int
E
;
constexpr
int
getE
()
{
return
E
;
}
const
int
E
=
10
;
static_assert
(
getE
()
==
10
);