Debian Codegraph @

gcc/testsuite/g++.dg/ext/tmplattr6.C

raw
1 // Don't crash on an unknown attribute.
2
3 struct foo {
4 template <class T>
5 void __attribute__((leafify)) bar() {} // { dg-warning "ignored" }
6 };
7
8 void bar(void)
9 {
10 foo f;
11 f.bar<int>();
12 }