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
parent
057f7e4aae
commit
8d8c920a51
1 changed files with 1 additions and 7 deletions
@ -1,13 +1,7 @@ |
|||||||
project('silent_or', 'c') |
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' |
if get_option('foo') == 'true' |
||||||
or get_option('foo') == 'auto' |
or get_option('foo') == 'auto' |
||||||
else |
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 |
endif |
||||||
|
Loading…
Reference in new issue