aboutsummaryrefslogtreecommitdiff
path: root/module-test
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-09-05 16:54:17 +0000
committer_ov4 <ov4@ov4.org>2026-09-05 16:54:17 +0000
commita41729222640456323f46110c113a318cd98243d (patch)
treea9dd2b24f6b0163727d76a46744878fe464850b3 /module-test
parent1d6f877864f3c1e8c04a2be8cb007fc598360642 (diff)
fix unmatched brackets
Diffstat (limited to 'module-test')
-rw-r--r--module-test/ast.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/module-test/ast.cc b/module-test/ast.cc
index f9dcbb8..1710f23 100644
--- a/module-test/ast.cc
+++ b/module-test/ast.cc
@@ -28,7 +28,7 @@ constexpr int MAXLINE = 1024;
int main()
{
- int test_case = 5;
+ int test_case = 6;
string s;
switch (test_case)
@@ -51,6 +51,10 @@ int main()
case 5:
s = "alpha || beta && (gamma || epsilon)";
break;
+ case 6:
+ // bracket matching test
+ s = ")alpha && beta(";
+ break;
default:
return 0;
}