blob: b0c9253da8431a5fac04c94d955dc1049b625c4c (
plain)
1
2
3
4
5
6
|
// { dg-do assemble }
// GROUPS passed niklas ellipsis
void f ();
void g1 (void (*) (...)); void h1 () { g1 (f); }// { dg-error "invalid conversion" }
struct S { void g2 (void (*) (...)); void h2 () { g2 (f); } };// { dg-error "match" "match" }
// { dg-message "candidate|S::g2|no known conversion" "match candidate text" { target *-*-* } 5 }
|