diff options
Diffstat (limited to 'libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc')
-rw-r--r-- | libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc b/libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc index 4262ca8..f97640a 100644 --- a/libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc +++ b/libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc @@ -25,6 +25,8 @@ #include <memory> #include <iostream> #include <future> +#include <initializer_list> +#include <atomic> #include "../util/testsuite_allocator.h" // NullablePointer typedef std::tuple<int, int> ExTuple; @@ -191,6 +193,20 @@ main() std::error_code ecfut0 = std::make_error_code(std::future_errc{}); // { dg-final { note-test ecfut0 {std::error_code = {"future": 0}} } } + std::initializer_list<int> emptyIl = {}; + // { dg-final { note-test emptyIl {std::initializer_list of length 0} } } + std::initializer_list<int> il = {3, 4}; + // { dg-final { note-test il {std::initializer_list of length 2 = {3, 4}} } } + + std::atomic<int> ai{100}; + // { dg-final { note-test ai {std::atomic<int> = { 100 }} } } + long l{}; + std::atomic<long*> ap{&l}; + // { dg-final { regexp-test ap {std::atomic.long \*. = { 0x.* }} } } + struct Value { int i, j; }; + std::atomic<Value> av{{8, 9}}; + // { dg-final { note-test av {std::atomic<Value> = { {i = 8, j = 9} }} } } + placeholder(""); // Mark SPOT use(efl); use(fl); |