20010129-1.c: Compile with -mtune=i686 for ia32 targets only.
[gcc.git] / gcc / testsuite / g++.dg / ext / attrib42.C
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 }