diff options
author | Patrick Palka <ppalka@redhat.com> | 2022-01-06 10:42:50 -0500 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2022-01-06 10:42:50 -0500 |
commit | 2793af17db239429ea3a2e26834e74daa6cff2c0 (patch) | |
tree | 46bd69e2e215e308c077135283bf350d59e5e2a9 /gcc | |
parent | 52ebc2be0990d6d3a46bb716164f9cef6f661021 (diff) | |
download | gcc-2793af17db239429ea3a2e26834e74daa6cff2c0.zip gcc-2793af17db239429ea3a2e26834e74daa6cff2c0.tar.gz gcc-2793af17db239429ea3a2e26834e74daa6cff2c0.tar.bz2 |
c++: Add testcase for recently fixed PR [PR69681]
Fixed ever since r12-6188.
PR c++/69681
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/constexpr-compare2.C: New test.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C new file mode 100644 index 0000000..b1bc472 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C @@ -0,0 +1,10 @@ +// PR c++/69681 +// { dg-do compile { target c++11 } } + +void f(); +void g(); +static_assert(f != g, ""); + +#if __cpp_constexpr >= 201603L +static_assert([]{} != []{}, ""); +#endif |