diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-07-20 18:21:59 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-07-20 18:21:59 +0000 |
commit | 108349dfe9079228c2b219e7824629a97427fb3f (patch) | |
tree | 04df58243bcfecb8ab7737fb1feecdeed7ec8366 /libstdc++-v3/testsuite/29_atomics/headers | |
parent | 5dc6ab3c1aadcdabe0248e995ca1d6c3207a5f96 (diff) | |
download | gcc-108349dfe9079228c2b219e7824629a97427fb3f.tar.gz |
LWG 2441 Provide exact-width atomic typedefs
* include/std/atomic (atomic_int8_t, atomic_uint8_t, atomic_int16_t)
(atomic_uint16_t, atomic_int32_t, atomic_uint32_t, atomic_int64_t)
(atomic_uint64_t): Define (LWG 2441).
* testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc: Remove empty
lines.
* testsuite/29_atomics/headers/atomic/types_std_c++0x.cc: Test for
the new types.
* doc/xml/manual/intro.xml: Document DR 2441 status.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238534 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/29_atomics/headers')
-rw-r--r-- | libstdc++-v3/testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc | 3 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/29_atomics/headers/atomic/types_std_c++0x.cc | 10 |
2 files changed, 10 insertions, 3 deletions
diff --git a/libstdc++-v3/testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc b/libstdc++-v3/testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc index a13f66ab1e5..1f56f5a5815 100644 --- a/libstdc++-v3/testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc +++ b/libstdc++-v3/testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc @@ -21,6 +21,3 @@ #include <atomic> // { dg-error "ISO C.. 2011" "" { target *-*-* } 32 } - - - diff --git a/libstdc++-v3/testsuite/29_atomics/headers/atomic/types_std_c++0x.cc b/libstdc++-v3/testsuite/29_atomics/headers/atomic/types_std_c++0x.cc index 32fe2a4eb1d..51adbf57835 100644 --- a/libstdc++-v3/testsuite/29_atomics/headers/atomic/types_std_c++0x.cc +++ b/libstdc++-v3/testsuite/29_atomics/headers/atomic/types_std_c++0x.cc @@ -72,4 +72,14 @@ void test01() using std::atomic_ptrdiff_t; using std::atomic_intmax_t; using std::atomic_uintmax_t; + + // DR 2441 + using std::atomic_int8_t; + using std::atomic_uint8_t; + using std::atomic_int16_t; + using std::atomic_uint16_t; + using std::atomic_int32_t; + using std::atomic_uint32_t; + using std::atomic_int64_t; + using std::atomic_uint64_t; } |