aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/parsec.zig14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/parsec.zig b/test/parsec.zig
index c3f4ab5412..c8e16755df 100644
--- a/test/parsec.zig
+++ b/test/parsec.zig
@@ -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
+ \\ };
+ \\}
+ );
+}