blob: fbc3841ddd3e028b2aae556d664a0810f015e6a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// { dg-do assemble }
// { dg-options "-ansi -pedantic-errors -w" }
// Bug: f1 and f2 are treated as overloaded when they aren't.
int i;
void f1(double) { }
void f2(double) { }
void
test ()
{
i ? f1 : f2; // { dg-bogus "" } improper overloading
}
|