]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Add testcase for DR 2836
authorJakub Jelinek <jakub@redhat.com>
Wed, 25 Sep 2024 14:07:50 +0000 (16:07 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 25 Sep 2024 14:26:35 +0000 (16:26 +0200)
commit0564d9501ebf11c9f0c541ac79054a38ec791d8c
tree66ab207a2e62c6d16fb69caf3a76b6b3227f19fb
parent340ef96560da93891418c39d38b5d90f6bd47053
c++: Add testcase for DR 2836

Seems we already handle it the way the DR clarifies, if double/long double
and std::float64_t have the same mode, foo has long double type (while
x + y would be _Float64 in C23), so this patch just adds a testcase which
verifies that.

2024-09-25  Jakub Jelinek  <jakub@redhat.com>

* g++.dg/DRs/dr2836.C: New test.
gcc/testsuite/g++.dg/DRs/dr2836.C [new file with mode: 0644]