aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test cases/failing/55 or on new line/meson.build13
-rw-r--r--test cases/failing/55 or on new line/meson_options.txt1
2 files changed, 14 insertions, 0 deletions
diff --git a/test cases/failing/55 or on new line/meson.build b/test cases/failing/55 or on new line/meson.build
new file mode 100644
index 0000000..b7fc89a
--- /dev/null
+++ b/test cases/failing/55 or on new line/meson.build
@@ -0,0 +1,13 @@
+project('silent_or', 'c')
+
+if get_option('foo') == 'true' or get_option('foo') == 'auto'
+
+else
+ error('This case is fine - this error isn't triggered.')
+endif
+
+if get_option('foo') == 'true'
+ or get_option('foo') == 'auto'
+else
+ error('This error is triggered because the or statement is silently ignored.')
+endif
diff --git a/test cases/failing/55 or on new line/meson_options.txt b/test cases/failing/55 or on new line/meson_options.txt
new file mode 100644
index 0000000..3302cf4
--- /dev/null
+++ b/test cases/failing/55 or on new line/meson_options.txt
@@ -0,0 +1 @@
+option('foo', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto')