Debian Codegraph @

gcc/testsuite/g++.dg/ext/attrib42.C

raw
1 // { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
2
3 struct A {
4 __attribute__((fastcall))
5 void f();
6 };
7
8 int main()
9 {
10 typedef void (A::*FP)();
11 FP fp[] = {&A::f}; // { dg-error "cannot convert" }
12 }