Initial commit from sysy-main
This commit is contained in:
13
testdata/functional/44_stmt_expr.sy
vendored
Executable file
13
testdata/functional/44_stmt_expr.sy
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
int k;
|
||||
const int n = 10;
|
||||
int main () {
|
||||
int i = 0;
|
||||
k = 1;
|
||||
while (i <= n - 1) {
|
||||
i = i + 1;
|
||||
k + 1;
|
||||
k = k + k;
|
||||
}
|
||||
putint(k);
|
||||
return k;
|
||||
}
|
||||
Reference in New Issue
Block a user