public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] libstd++: Library-side tests for parenthesized aggregate init (c++/92878, c++/92947)
@ 2020-02-23 13:19 Ville Voutilainen
  2020-02-24 10:44 ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: Ville Voutilainen @ 2020-02-23 13:19 UTC (permalink / raw)
  To: gcc-patches List, libstdc++

[-- Attachment #1: Type: text/plain, Size: 2383 bytes --]

This shebang adds library tests for all cases of parenthesized aggregate
initialization that I could find. Tested locally on Linux-x64, going to
test with full suite on Linux-PPC64, OK for trunk if tests pass?

2020-02-23  Ville Voutilainen  <ville.voutilainen@gmail.com>

    Library-side tests for parenthesized aggregate init

    PR c++/92878
    PR c++/92947

    * testsuite/20_util/allocator_traits/members/92878_92947.cc: New.
    * testsuite/20_util/any/assign/92878_92947.cc: Likewise.
    * testsuite/20_util/any/cons/92878_92947.cc: Likewise.
    * testsuite/20_util/is_constructible/92878_92947.cc: Likewise.
    * testsuite/20_util/optional/assignment/92878_92947.cc: Likewise.
    * testsuite/20_util/optional/cons/92878_92947.cc: Likewise.
    * testsuite/20_util/pair/cons/92878_92947.cc: Likewise.
    * testsuite/20_util/shared_ptr/creation/92878_92947.cc: Likewise.
    * testsuite/20_util/specialized_algorithms/construct_at/92878_92947.cc:
    Likewise.
    * testsuite/20_util/unique_ptr/creation/92878_92947.cc: Likewise.
    * testsuite/20_util/uses_allocator/92878_92947.cc: Likewise.
    * testsuite/20_util/variant/92878_92947.cc: Likewise.
    * testsuite/23_containers/deque/modifiers/emplace/92878_92947.cc:
    Likewise.
    * testsuite/23_containers/forward_list/modifiers/92878_92947.cc:
    Likewise.
    * testsuite/23_containers/list/modifiers/emplace/92878_92947.cc:
    Likewise.
    * testsuite/23_containers/map/modifiers/emplace/92878_92947.cc:
    Likewise.
    * testsuite/23_containers/multimap/modifiers/emplace/92878_92947.cc:
    Likewise.
    * testsuite/23_containers/multiset/modifiers/emplace/92878_92947.cc:
    Likewise.
    * testsuite/23_containers/priority_queue/92878_92947.cc: Likewise.
    * testsuite/23_containers/queue/92878_92947.cc: Likewise.
    * testsuite/23_containers/set/modifiers/emplace/92878_92947.cc:
    Likewise.
    * testsuite/23_containers/stack/92878_92947.cc: Likewise.
    * testsuite/23_containers/unordered_map/modifiers/92878_92947.cc:
    Likewise.
    * testsuite/23_containers/unordered_multimap/modifiers/92878_92947.cc:
    Likewise.
    * testsuite/23_containers/unordered_multiset/modifiers/92878_92947.cc:
    Likewise.
    * testsuite/23_containers/unordered_set/modifiers/92878_92947.cc:
    Likewise.
    * testsuite/23_containers/vector/modifiers/emplace/92878_92947.cc:
    Likewise.

[-- Attachment #2: aggr-init-lib-tests.diff.gz --]
[-- Type: application/gzip, Size: 3708 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] libstd++: Library-side tests for parenthesized aggregate init (c++/92878, c++/92947)
  2020-02-23 13:19 [PATCH] libstd++: Library-side tests for parenthesized aggregate init (c++/92878, c++/92947) Ville Voutilainen
@ 2020-02-24 10:44 ` Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2020-02-24 10:44 UTC (permalink / raw)
  To: Ville Voutilainen; +Cc: gcc-patches List, libstdc++

On 23/02/20 15:18 +0200, Ville Voutilainen wrote:
>This shebang adds library tests for all cases of parenthesized aggregate
>initialization that I could find. Tested locally on Linux-x64, going to
>test with full suite on Linux-PPC64, OK for trunk if tests pass?

Please add: { dg-do run { target c++2a } }

Tests that aren't valid in all modes should be marked as such. Some
day I'd like the library tests to be able to run automatically for
multiple -std variations, like the front end tests do. To do that we'd
want to remove all -std flags from dg-options, and at that point we
need the tests to be correctly marked so they won't try to run for
-std=c++98 etc.

OK with that change if testing passes, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-24 10:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-23 13:19 [PATCH] libstd++: Library-side tests for parenthesized aggregate init (c++/92878, c++/92947) Ville Voutilainen
2020-02-24 10:44 ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).