Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/gen-attrs-42.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 struct A {
6 [[gnu::fastcall]]
7 void f();
8 };
9
10 int main()
11 {
12 typedef void (A::*FP)();
13 FP fp[] = {&A::f}; // { dg-error "cannot convert" }
14 }