blob: 44161336e78156fb8d6be68acd08ec1e8ab11a22 [file] [log] [blame]
/* Test __attribute__ ((unavailable)) */
/* { dg-do compile } */
/* { dg-options "" } */
template<typename T> struct __attribute__ ((unavailable)) S {};
S<int> s;
template <template <class> class T> struct A { };
A<S> a;
template <class T> void f() __attribute__ ((unavailable));
int main()
{
f<int>(); // { dg-error "unavailable" }
void (*p)() = f<char>; // { dg-error "unavailable" }
}