blob: 3f78173077e5cd528d9969476be6d53b9f98d471 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
// expect error: f: is defined twice
// spec 5.2.6 and appendix b.2.3 (bug: accepted silently)
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
int f() { return 1; }
int f() { return 2; }
fn main() { pn(f()); return 0; }
// zc0: skip
|