summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/void10.C
blob: 4904a281a400bb22ad198f0cbdddaead97f1addf (plain)
1
2
3
4
5
6
7
8
9
10
//PR c++/28736

template<void> struct A                 // { dg-error "not a valid type" }
{
    template<typename> friend struct B;
};

template<typename> struct B {};

B<int> b;