aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/attrib8.C
blob: 130fe258701fd6e787d6d26ed3a1c188e422ad29 (plain)
1
2
3
4
5
6
7
8
9
10
// PR 8656
// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }

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

void snafu( void)
{
  fooPtr = myFn01;
}