1 // RUN: %clang_cc1 -std=c++23 -fsyntax-only -verify %s
5 auto lstatic
= []() static { return 3; };
6 int (*f2
)(void) = lstatic
;
12 auto lstatic
= []() static consteval
//expected-error{{cannot take address of consteval call}} \
13 expected
-note
{{declared here
}}
16 // FIXME: the above error should indicate that it was triggered below.
17 int (*f2
)(void) = lstatic
;
23 auto lstatic
= []() static { return 3; };
24 constexpr int (*f2
)(void) = lstatic
;
25 static_assert(lstatic() == f2());
31 auto L
= []() static { return x
; };