* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git] / gcc / testsuite / g++.dg / ext / attr-deprecated-1.C
blob31a76903cb56cc19fa64ca7aae2415dc614577b6
1 // PR c++/33911
3 template<typename T> struct __attribute__ ((deprecated)) S {};
4 S<int> s;                       // { dg-warning "deprecated" }
6 template <template <class> class T> struct A { };
7 A<S> a;                         // { dg-warning "deprecated" }
9 template <class T> void f() __attribute__ ((deprecated));
11 int main()
13   f<int>();                     // { dg-warning "deprecated" }
14   void (*p)() = f<char>;        // { dg-warning "deprecated" }