Sign in
fuchsia
/
third_party
/
github.com
/
llvm
/
llvm-project
/
refs/heads/main
/
.
/
clang
/
test
/
SemaCXX
/
gh185270.cpp
blob: 3f7bdaaca1f8b26f4f2f1d1a333d5cd86da31857 [
file
] [
edit
]
// RUN: %clang_cc1 -std=c++23 -fsyntax-only -verify %s
void
foo
()([]
consteval
->
int
{
return
0
;
}());
// expected-error {{illegal initializer (only variables can be initialized)}}