mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
18 lines
241 B
D
18 lines
241 B
D
/* REQUIRED_ARGS: -O
|
|
* PERMUTE_ARGS:
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=18534
|
|
|
|
auto blah(char ch) { return ch; }
|
|
|
|
auto foo(int i)
|
|
{
|
|
return blah(i ? 'A' : 'A');
|
|
}
|
|
|
|
void main()
|
|
{
|
|
auto c = foo(0);
|
|
assert(c == 'A');
|
|
}
|