blob: 3ab6194ca5007a497f2506dfc41d82f705dc9ae3 (
plain) (
blame)
1
2
3
4
5
6
7
|
// expect error: a function returning .u has to end with a return
// spec 5.2.3
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
.u f(int k) { if (k) return rt.new(2); }
fn main() { return 0; }
// zc0: skip
|