summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/redecl4.C
blob: 9a4a9f366e9c4198faa1ebe67c72adacae53e9d1 (plain)
1
2
3
4
5
// PR c++/28710
// { dg-do compile }

template<int> union A;  // { dg-error "previous" }
struct A;               // { dg-error "non-template" }