]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: add fixed test [PR101099]
authorMarek Polacek <polacek@redhat.com>
Fri, 30 Aug 2024 21:09:19 +0000 (17:09 -0400)
committerMarek Polacek <polacek@redhat.com>
Fri, 30 Aug 2024 21:09:46 +0000 (17:09 -0400)
-fconcepts-ts is no longer supported so this can't be made to ICE
anymore.

PR c++/101099

gcc/testsuite/ChangeLog:

* g++.dg/concepts/pr101099.C: New test.

gcc/testsuite/g++.dg/concepts/pr101099.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/concepts/pr101099.C b/gcc/testsuite/g++.dg/concepts/pr101099.C
new file mode 100644 (file)
index 0000000..82fd87c
--- /dev/null
@@ -0,0 +1,6 @@
+// PR c++/101099
+// { dg-do compile { target c++11 } }
+// { dg-options "-fconcepts" }
+
+#include <initializer_list>
+constexpr auto list = { 1, 2, 3 };