| /llvm-project-15.0.7/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constinit/ |
| H A D | p1.cpp | 3 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 D | p2.cpp | 5 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 D | p3.cpp | 5 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 D | fixit-c++2a.cpp | 19 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 D | cxx2a-thread-local-constinit.cpp | 19 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 D | aix-static-init.cpp | 27 constinit Test3 t;
|
| H A D | ibm128-declarations.cpp | 32 constinit const __ibm128 ci = func_add(1.0, 2.0);
|
| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | cxx0x-decl.cpp | 163 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 D | cxa_default_handlers.cpp | 24 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 D | memory_resource.cpp | 100 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 D | memory_resource_init_helper.h | 2 static constinit ResourceInitHelper res_init _LIBCPP_INIT_PRIORITY_MAX;
|
| /llvm-project-15.0.7/libcxx/test/std/thread/thread.semaphore/ |
| H A D | ctor.compile.pass.cpp | 29 constinit std::binary_semaphore bs(1); 30 constinit std::counting_semaphore cs(1);
|
| /llvm-project-15.0.7/libcxx/src/ |
| H A D | memory.cpp | 142 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 D | mutex.cpp | 204 static constinit __libcpp_mutex_t mut = _LIBCPP_MUTEX_INITIALIZER; 205 static constinit __libcpp_condvar_t cv = _LIBCPP_CONDVAR_INITIALIZER;
|
| H A D | random_shuffle.cpp | 22 static constinit __libcpp_mutex_t __rs_mut = _LIBCPP_MUTEX_INITIALIZER;
|
| H A D | legacy_debug_handler.cpp | 46 constinit __libcpp_debug_function_type __libcpp_debug_function = __libcpp_abort_debug_function;
|
| /llvm-project-15.0.7/libcxx/src/support/runtime/ |
| H A D | exception_fallback.ipp | 14 static constinit std::terminate_handler __terminate_handler = nullptr; 15 static constinit std::unexpected_handler __unexpected_handler = nullptr;
|
| H A D | new_handler_fallback.ipp | 12 static constinit std::new_handler __new_handler = nullptr;
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | cxx20-constinit.cpp | 4 constinit int a __attribute__((weak)) = 0;
|
| H A D | constant-expression-cxx2a.cpp | 560 constinit X x1(true); 561 …constinit 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>(); 1395 …constinit V v1 = X<1>(); // expected-error {{constant init}} expected-note {{constinit}} expected-… 1396 constinit V v2 = X<2>(); 1397 …constinit V v3 = X<3>(); // expected-error {{constant init}} expected-note {{constinit}} expected-…
|
| /llvm-project-15.0.7/clang/test/Lexer/ |
| H A D | cxx2a_keyword_as_cxx17.cpp | 15 int constinit = 0; // expected-warning {{'constinit' is a keyword in C++20}}
|
| /llvm-project-15.0.7/libc/src/stdlib/ |
| H A D | atexit.cpp | 22 constinit ExitCallbackList exit_callbacks;
|
| /llvm-project-15.0.7/lldb/test/API/lang/c/cpp_keyword_identifiers/ |
| H A D | main.c | 23 int constinit = 1; in main() local
|
| /llvm-project-15.0.7/clang/test/CXX/drs/ |
| H A D | dr20xx.cpp | 29 …constinit 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 D | main.m | 23 int constinit = 1;
|