aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/attr-unavailable-12.C
blob: 7174abc8bb9f9247cba4f94751e3daf4ec3609e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/84542

template<class T>
void f(T);

template<class T>
__attribute__((unavailable))
void f(T) { }

int main() {
  f(0); // { dg-error "unavailable" }
}