Debian Codegraph @

gcc/testsuite/g++.dg/ext/attr-unavailable-12.C

raw
1 // PR c++/84542
2
3 template<class T>
4 void f(T);
5
6 template<class T>
7 __attribute__((unavailable))
8 void f(T) { }
9
10 int main() {
11 f(0); // { dg-error "unavailable" }
12 }