mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
28 lines
470 B
C
28 lines
470 B
C
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test22344.c(104): Error: function `test22344.func` redeclaration with different type
|
|
fail_compilation/test22344.c(204): Error: function `test22344.test` redeclaration with different type
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=22344
|
|
|
|
#line 100
|
|
|
|
int func(double a);
|
|
|
|
int func(int b)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=22761
|
|
|
|
#line 200
|
|
|
|
int test(int x);
|
|
|
|
int test(int x, ...)
|
|
{
|
|
return x;
|
|
}
|