aboutsummaryrefslogtreecommitdiff
path: root/tests/opt_group/opt_group.fwd
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2026-05-01 22:26:33 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2026-05-01 22:26:33 +0300
commit44fb150915fee559658d2296a5ba987925d27f78 (patch)
tree5d249588c9013db10809856834edb1dc36000bbc /tests/opt_group/opt_group.fwd
parentdb6de6955dfef602d2cc708767cad39268b3a91c (diff)
downloadfwd-44fb150915fee559658d2296a5ba987925d27f78.tar.gz
fwd-44fb150915fee559658d2296a5ba987925d27f78.zip
add opt_group test
Diffstat (limited to 'tests/opt_group/opt_group.fwd')
-rw-r--r--tests/opt_group/opt_group.fwd14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/opt_group/opt_group.fwd b/tests/opt_group/opt_group.fwd
new file mode 100644
index 0000000..e520c70
--- /dev/null
+++ b/tests/opt_group/opt_group.fwd
@@ -0,0 +1,14 @@
+do_something(() a | () b)
+{
+ a();
+
+ /* should fail, since either a or b should be called, but not both */
+ b();
+}
+
+main()
+{
+ do_something()
+ => {}
+ => {}
+}