summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/attrib8.C
blob: 7d99132c1751544c1b3e1eb8f7b47333eef8435b (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR 8656
// { dg-do compile { target i?86-*-* x86_64-*-* } }
// { dg-require-effective-target ilp32 }

extern int * (__attribute__((stdcall)) *fooPtr)( void);
int * __attribute__((stdcall)) myFn01( void) { return 0; }

void snafu( void)
{
  fooPtr = myFn01;
}