]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Test that std::atomic_ref<bool> uses the primary template
authorJonathan Wakely <jwakely@redhat.com>
Thu, 11 Jul 2024 20:23:15 +0000 (21:23 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 11 Jul 2024 23:08:16 +0000 (00:08 +0100)
commit43763bd75f1d37189ba08657a322e91d240e8cf3
tree8c474ea9619e8f08b51847f8e7a97031782b0e4a
parent79d3f17b07884cc9486f5e6fb21beea97c153a55
libstdc++: Test that std::atomic_ref<bool> uses the primary template

The previous commit changed atomic_ref<bool> to not use the integral
specialization. This adds a test to verify that change. We can't
directly test that the primary template is used, but we can check that
the member functions of the integral specializations are not present.

libstdc++-v3/ChangeLog:

* testsuite/29_atomics/atomic_ref/bool.cc: New test.
libstdc++-v3/testsuite/29_atomics/atomic_ref/bool.cc [new file with mode: 0644]