blob: 546020b6cd87fb5f74ee6e08b5454bbef4df51d4 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// pp-exact
// Here we check that the parentheses around the body of `wsucc()` are
// preserved. They are needed to disambiguate `{ret n+1}; - 0` from
// `({ret n+1}-0)`.
fn id(f: fn() -> int) -> int { f() }
fn wsucc(n: int) -> int { (do id || { 1 }) - 0 }
fn main() { }
|