c++: Add testcase for already fixed PR97105
authorJakub Jelinek <jakub@redhat.com>
Fri, 18 Sep 2020 22:09:11 +0000 (00:09 +0200)
committerJakub Jelinek <jakub@redhat.com>
Fri, 18 Sep 2020 22:09:11 +0000 (00:09 +0200)
This has been fixed by the PR bootstrap/97118 fix.

2020-09-19  Jakub Jelinek  <jakub@redhat.com>

PR c++/97105
* g++.dg/template/pr97105.C: New test.

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

diff --git a/gcc/testsuite/g++.dg/template/pr97105.C b/gcc/testsuite/g++.dg/template/pr97105.C
new file mode 100644 (file)
index 0000000..2315972
--- /dev/null
@@ -0,0 +1,6 @@
+// PR c++/97105
+// { dg-do compile }
+
+template <int> struct A {};
+extern const A<0> a[];
+const A<0> a[] = { {} };