blob: 7aebc2c2474c0102fd824e0353118f13eb0dad9a (
plain) (
blame)
1
2
3
4
5
6
7
|
// expect error: x: used after it was given away
// spec 6.9.2
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
int* g;
fn main() { int* x = rt.new(1); x[0] = 2; g = d*x; pn(x[0]); return 0; }
// zc0: skip
|