From 4a5ff2b56bfea0b3e154a15e809c5c42dc3b9e9f Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sat, 19 Sep 2020 00:09:11 +0200 Subject: [PATCH] c++: Add testcase for already fixed PR97105 This has been fixed by the PR bootstrap/97118 fix. 2020-09-19 Jakub Jelinek PR c++/97105 * g++.dg/template/pr97105.C: New test. --- gcc/testsuite/g++.dg/template/pr97105.C | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/pr97105.C diff --git a/gcc/testsuite/g++.dg/template/pr97105.C b/gcc/testsuite/g++.dg/template/pr97105.C new file mode 100644 index 00000000000..2315972fa60 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/pr97105.C @@ -0,0 +1,6 @@ +// PR c++/97105 +// { dg-do compile } + +template struct A {}; +extern const A<0> a[]; +const A<0> a[] = { {} }; -- 2.30.2