public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] c++: Add testcase for recently fixed PR [PR69681]
@ 2022-01-06 15:44 Patrick Palka
  2022-01-07 10:22 ` Jakub Jelinek
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Palka @ 2022-01-06 15:44 UTC (permalink / raw)
  To: gcc-patches

Fixed ever since r12-6188.

	PR c++/69681

gcc/testsuite/ChangeLog:

	* g++.dg/cpp0x/constexpr-compare2.C: New test.
---
 gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 gcc/testsuite/g++.dg/cpp0x/constexpr-compare2.C

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
-- 
2.34.1.493.ge83ba647f7


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-07 15:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-06 15:44 [committed] c++: Add testcase for recently fixed PR [PR69681] Patrick Palka
2022-01-07 10:22 ` Jakub Jelinek
2022-01-07 15:12   ` 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).