1 // PR c++/26122 2 3 struct A 4 { 5 template<int> void foo() = 1; // { dg-error "pure|non-virtual" } 6 }; 7