repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
gen-attrs-42.C
blob
9fcd5560ca239a2609c08baacde8a9eb465360d2
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
}