OSDN Git Service

PR c++/51922
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / attrib42.C
1 // { dg-do compile { target { i?86-*-* && ilp32 } } }
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 }