Add test case for or on a new line silently being ignored

Issue #1886
pull/1997/head
Tim Hutt 8 years ago committed by Jussi Pakkanen
parent 1821598fbb
commit 057f7e4aae
  1. 13
      test cases/failing/55 or on new line/meson.build
  2. 1
      test cases/failing/55 or on new line/meson_options.txt

@ -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

@ -0,0 +1 @@
option('foo', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto')
Loading…
Cancel
Save