Home
last modified time | relevance | path

Searched refs:constinit (Results 1 – 25 of 35) sorted by relevance

12

/llvm-project-15.0.7/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constinit/
H A Dp1.cpp3 constinit int a;
4 constinit thread_local int b;
5 constinit static int c;
8 constinit static int a; in f()
9 constinit thread_local int b; in f()
15 extern constinit int a; // expected-error {{added after initialization}}
18 extern constinit int b; // expected-note {{here}}
23 static constinit int a; // expected-note {{here}}
25 static constinit const int c = 1;
26 static constinit const int d = 1;
[all …]
H A Dp2.cpp5 constinit int a;
6 constinit int b = f(); // expected-error {{does not have a constant initializer}} expected-note {{r…
7 extern constinit int c; // expected-note {{here}} expected-note {{required by}}
H A Dp3.cpp5 constinit const char *c = f(true);
6 constinit const char *d = f(false); // expected-error {{does not have a constant initializer}} expe…
/llvm-project-15.0.7/clang/test/FixIt/
H A Dfixit-c++2a.cpp19 extern thread_local constinit int a; // expected-note {{declared constinit here}}
24 …extern constinit int b; // expected-error {{'constinit' specifier added after initialization of va…
28 template<int> static constinit int n; // expected-note {{constinit}}
35 extern constinit int c; // expected-note {{constinit}}
39 #define MY_CONST_INIT constinit
40 extern constinit int d; // expected-note {{constinit}}
45 extern constinit int e; // expected-note {{constinit}}
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dcxx2a-thread-local-constinit.cpp19 extern thread_local constinit int b;
66 extern thread_local constinit struct DestructedFwdDecl e3;
80 extern thread_local constinit Destructed e;
89 thread_local constinit Destructed e2;
91 thread_local constinit int f = 4;
102 thread_local constinit NotDestructed nd;
H A Daix-static-init.cpp27 constinit Test3 t;
H A Dibm128-declarations.cpp32 constinit const __ibm128 ci = func_add(1.0, 2.0);
/llvm-project-15.0.7/clang/test/Parser/
H A Dcxx0x-decl.cpp163 constinit constexpr int n1 = 0; // expected-error {{cannot combine with previous 'constinit'}}
164 constexpr constinit int n2 = 0; // expected-error {{cannot combine with previous 'constexpr'}}
165 constinit constinit int n3 = 0; // expected-error {{duplicate 'constinit' declaration specifier}}
171 constinit consteval int wat = 0; // expected-error {{cannot combine with previous 'constinit'}}
172 consteval constinit int huh(); // expected-error {{cannot combine with previous 'consteval'}}
/llvm-project-15.0.7/libcxxabi/src/
H A Dcxa_default_handlers.cpp24 static constinit const char* cause = "uncaught";
106 constinit std::terminate_handler __cxa_terminate_handler = default_terminate_handler;
109 constinit std::unexpected_handler __cxa_unexpected_handler = default_unexpected_handler;
112 constinit std::new_handler __cxa_new_handler = nullptr;
/llvm-project-15.0.7/libcxx/src/experimental/
H A Dmemory_resource.cpp100 static constinit atomic<memory_resource*> __res{&res_init.resources.new_delete_res}; in __default_memory_resource()
112 static constinit memory_resource *res = &res_init.resources.new_delete_res; in __default_memory_resource()
125 static constinit memory_resource *res = &res_init.resources.new_delete_res; in __default_memory_resource()
H A Dmemory_resource_init_helper.h2 static constinit ResourceInitHelper res_init _LIBCPP_INIT_PRIORITY_MAX;
/llvm-project-15.0.7/libcxx/test/std/thread/thread.semaphore/
H A Dctor.compile.pass.cpp29 constinit std::binary_semaphore bs(1);
30 constinit std::counting_semaphore cs(1);
/llvm-project-15.0.7/libcxx/src/
H A Dmemory.cpp142 static constinit __libcpp_mutex_t mut_back[__sp_mut_count] =
175 static constinit __sp_mut muts[__sp_mut_count] = { in __get_sp_mut()
H A Dmutex.cpp204 static constinit __libcpp_mutex_t mut = _LIBCPP_MUTEX_INITIALIZER;
205 static constinit __libcpp_condvar_t cv = _LIBCPP_CONDVAR_INITIALIZER;
H A Drandom_shuffle.cpp22 static constinit __libcpp_mutex_t __rs_mut = _LIBCPP_MUTEX_INITIALIZER;
H A Dlegacy_debug_handler.cpp46 constinit __libcpp_debug_function_type __libcpp_debug_function = __libcpp_abort_debug_function;
/llvm-project-15.0.7/libcxx/src/support/runtime/
H A Dexception_fallback.ipp14 static constinit std::terminate_handler __terminate_handler = nullptr;
15 static constinit std::unexpected_handler __unexpected_handler = nullptr;
H A Dnew_handler_fallback.ipp12 static constinit std::new_handler __new_handler = nullptr;
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dcxx20-constinit.cpp4 constinit int a __attribute__((weak)) = 0;
H A Dconstant-expression-cxx2a.cpp560 constinit X x1(true);
561constinit X x2(false); // expected-error {{constant initializer}} expected-note {{constinit}} expe…
1381 constinit U u = {}; // expected-error {{constant init}} expected-note {{constinit}}
1394 constinit V v0 = X<0>();
1395constinit V v1 = X<1>(); // expected-error {{constant init}} expected-note {{constinit}} expected-…
1396 constinit V v2 = X<2>();
1397constinit V v3 = X<3>(); // expected-error {{constant init}} expected-note {{constinit}} expected-…
/llvm-project-15.0.7/clang/test/Lexer/
H A Dcxx2a_keyword_as_cxx17.cpp15 int constinit = 0; // expected-warning {{'constinit' is a keyword in C++20}}
/llvm-project-15.0.7/libc/src/stdlib/
H A Datexit.cpp22 constinit ExitCallbackList exit_callbacks;
/llvm-project-15.0.7/lldb/test/API/lang/c/cpp_keyword_identifiers/
H A Dmain.c23 int constinit = 1; in main() local
/llvm-project-15.0.7/clang/test/CXX/drs/
H A Ddr20xx.cpp29constinit int d = d; // expected-error {{constant initializer}} expected-note {{outside its lifeti…
47 …static constinit int h = h; // expected-error {{constant initializer}} expected-note {{outside its… in f()
/llvm-project-15.0.7/lldb/test/API/lang/objc/cpp_keyword_identifiers/
H A Dmain.m23 int constinit = 1;

12