libstdc++: Fix tests for uninitialized_value_construct_n
authorJonathan Wakely <jwakely@redhat.com>
Wed, 17 Jun 2020 20:23:35 +0000 (21:23 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 17 Jun 2020 20:23:35 +0000 (21:23 +0100)
commit94b94c0bb1ca52f2b6912852cb40240efe72e82b
tree21d80f23a5820568e017e3b26fa8bac36dfbc153
parentc9dce3b15e89e851f59ebe9e8879c8f3a620311a
libstdc++: Fix tests for uninitialized_value_construct_n

In my recent r11-1460 commit the tests had been "improved" before
commit, and no longer exercised the code paths changed by the patch.

This restores what I originally tested, so that the tests fail before
the r11-1460 change and pass after it.

* testsuite/20_util/specialized_algorithms/uninitialized_default_n/sizes.cc:
Replace Value type with int so trivial code path is used.
* testsuite/20_util/specialized_algorithms/uninitialized_value_construct_n/sizes.cc:
Likewise.
libstdc++-v3/testsuite/20_util/specialized_algorithms/uninitialized_default_n/sizes.cc
libstdc++-v3/testsuite/20_util/specialized_algorithms/uninitialized_value_construct_n/sizes.cc