summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/diagnostics/std.exceptions/length.error
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-12-11 03:41:12 +0000
committerEric Fiselier <eric@efcs.ca>2016-12-11 03:41:12 +0000
commit1286bc577f70c5b8caa83b2440484fbbb3b15a6e (patch)
tree98844f59716c7a4843315020a26019dfc474f054 /libcxx/test/std/diagnostics/std.exceptions/length.error
parentb6398818780314c84e796ec1d4b1dbda27ddf554 (diff)
downloadbcm5719-llvm-1286bc577f70c5b8caa83b2440484fbbb3b15a6e.tar.gz
bcm5719-llvm-1286bc577f70c5b8caa83b2440484fbbb3b15a6e.zip
Fix undefined behavior in container swap tests.
These swap tests were swapping non-POCS non-equal allocators which is undefined behavior. This patch changes the tests to use allocators which compare equal. In order to test that the allocators were not swapped I added an "id" field to test_allocator which does not participate in equality but does propagate across copies/swaps. This patch is based off of D26623 which was submitted by STL. llvm-svn: 289358
Diffstat (limited to 'libcxx/test/std/diagnostics/std.exceptions/length.error')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud