cgen: fix tests

pull/4127/head
Joe Conigliaro 2020-03-27 17:28:04 +11:00
parent 7ce7151ad2
commit 883a105aca
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ multi_return_int_string multi_return() {
void variadic(varg_int a) { void variadic(varg_int a) {
int x = _const_path_sep; int x = _const_path_sep;
int y = true ? 1 : 0; int y = (true ? 1 : 0);
} }
void ensure_cap(int required, int cap) { void ensure_cap(int required, int cap) {

View File

@ -34,7 +34,7 @@ void User_foo(User* u) {
tos3(""), tos3(""),
}), u->age); }), u->age);
int a = 10; int a = 10;
if (a == 10 || a == 20 || a == 30) { if ((a == 10 || a == 20 || a == 30)) {
int b = 10; int b = 10;
} }
string name = tos3("Bob"); string name = tos3("Bob");