blob: 3291152fe98c45ce62aca2fc4ee6a41e3545631d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
// expect: 45/
// spec 4.10.1: o3 { } marks a block
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
int t = 0;
o3 { int s = 0; for (int i = 0; i < 10; i++) s += i; t = s; }
pn(t);
return 0;
}
// zc0: skip
|