Make the 'silent or' test case not fail when it should

Previously it would have failed in two different ways depending on whether the parser bug was fixed. Now it will only fail if the parser bug is fixed.
pull/1997/head
Tim Hutt 7 years ago committed by Jussi Pakkanen
parent 057f7e4aae
commit 8d8c920a51
  1. 8
      test cases/failing/55 or on new line/meson.build

@ -1,13 +1,7 @@
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.')
message('If this message is printed then something is wrong. The or above should give a syntax error.')
endif

Loading…
Cancel
Save