diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/ext/attrib8.C')
-rw-r--r-- | gcc/testsuite/g++.dg/ext/attrib8.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ext/attrib8.C b/gcc/testsuite/g++.dg/ext/attrib8.C new file mode 100644 index 00000000000..26021c56ca4 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/attrib8.C @@ -0,0 +1,10 @@ +// PR 8656 +// { dg-do compile { target i?86-*-* } } + +extern int * (__attribute__((stdcall)) *fooPtr)( void); +int * __attribute__((stdcall)) myFn01( void) { return 0; } + +void snafu( void) +{ + fooPtr = myFn01; +} |