Debian Codegraph @

libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/115807.cc

raw
1 // { dg-do compile { target c++23 } }
2 #include <stdatomic.h>
3 namespace other {
4 namespace std {
5 int atomic = 0;
6 }
7 _Atomic(long) a{};
8 }
9
10 #include <type_traits>
11
12 namespace non::std {
13 static_assert( ::std::is_same_v<_Atomic(int), ::std::atomic<int>> );
14 }