blob: 631f953cfe24ec983768008af44681f76da70e38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// { dg-do assemble }
// Bug: foo and bar are considered to be overloaded (i.e. their
// IDENTIFIER_GLOBAL_VALUES are TREE_LISTs) even though they aren't,
// so ?: thinks it can't resolve the names.
void foo ();
void bar ();
void baz ()
{
void (*p)() = 1 ? foo : bar; // { dg-bogus "" } wrongful overloading
}
|