blob: 31a76903cb56cc19fa64ca7aae2415dc614577b6 [file] [log] [blame]
// PR c++/33911
template<typename T> struct __attribute__ ((deprecated)) S {};
S<int> s; // { dg-warning "deprecated" }
template <template <class> class T> struct A { };
A<S> a; // { dg-warning "deprecated" }
template <class T> void f() __attribute__ ((deprecated));
int main()
{
f<int>(); // { dg-warning "deprecated" }
void (*p)() = f<char>; // { dg-warning "deprecated" }
}