re PR c++/84661 (internal compiler error: Segmentation fault (strip_array_types()))
[official-gcc.git] / libstdc++-v3 / src / c++17 / default_resource.h
blob522cee13b90eb92d68ab345d556d111ccc6926a9
1 // This is only in a header so we can use the system_header pragma,
2 // to suppress the warning caused by using a reserved init_priority.
3 #pragma GCC system_header
5 #if ATOMIC_POINTER_LOCK_FREE == 2 || defined(__GTHREAD_MUTEX_INIT)
6 # error "This file should not be included for this build"
7 #endif
9 struct {
10 atomic_mem_res obj = &newdel_res.obj;
11 } default_res __attribute__ ((init_priority (100)));