]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Add new testcase for comparison category types
authorJonathan Wakely <jwakely@redhat.com>
Wed, 27 May 2020 12:13:19 +0000 (13:13 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 27 May 2020 12:14:17 +0000 (13:14 +0100)
commit116e3cfc7b8ab8afc4bdbc03db6b194413218af7
treea189df9dce328403265309add12ffcc7b2ff236c
parent764ef40ba185ef9245a209ba9260d1e50bec6934
libstdc++: Add new testcase for comparison category types

Comparing a comparison category type to anything except a literal 0 is
undefined. This verifies that at least some misuses are diagnosed at
compile time.

* testsuite/18_support/comparisons/categories/zero_neg.cc: New test.
libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc [new file with mode: 0644]
This page took 0.057711 seconds and 6 git commands to generate.