aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/attr-noinline-4.C
blob: 27c7ae80fec4a924d9af07e3b5fa66a534710903 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/84665

struct S {} a[1];

template <int N>
void
foo ()
{
  __attribute__ ((noinline (a[0]))) int c = 0; // { dg-error "wrong number of arguments" }
}