public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6285] c++: Add testcase for recently fixed PR [PR69681]
@ 2022-01-06 15:43 Patrick Palka
0 siblings, 0 replies; only message in thread
From: Patrick Palka @ 2022-01-06 15:43 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:2793af17db239429ea3a2e26834e74daa6cff2c0
commit r12-6285-g2793af17db239429ea3a2e26834e74daa6cff2c0
Author: Patrick Palka <ppalka@redhat.com>
Date: Thu Jan 6 10:42:50 2022 -0500
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.
Diff:
---
gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C | 10 ++++++++++
1 file changed, 10 insertions(+)
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 00000000000..b1bc4720805
--- /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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-06 15:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-06 15:43 [gcc r12-6285] c++: Add testcase for recently fixed PR [PR69681] Patrick Palka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).