parsec supports C comma operator

This commit is contained in:
Josh Wolfe
2017-11-13 19:59:32 -07:00
parent 1f28fcdec5
commit 57cd074959
2 changed files with 24 additions and 3 deletions

View File

@@ -606,8 +606,20 @@ pub fn addCases(cases: &tests.ParseCContext) {
\\ return null;
\\}
);
}
cases.addC("comma operator",
\\int foo(void) {
\\ return 1, 2;
\\}
,
\\export fn foo() -> c_int {
\\ return {
\\ _ = 1;
\\ 2
\\ };
\\}
);
}