gcc/testsuite/g++.dg/cpp0x/gen-attrs-8.C
raw| 1 | // { dg-options "-pedantic" } |
| 2 | // { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } |
| 3 | // { dg-require-effective-target c++11 } |
| 4 | |
| 5 | extern int * ([[gnu::stdcall]] *fooPtr)( void); // { dg-error "expected" } |
| 6 | int * [[gnu::stdcall]] myFn01( void) { return 0; }// { dg-warning "only applies to function types" } |
| 7 |