diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-07-27 17:06:37 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-07-27 17:06:37 +0300 |
commit | 6a5a9a384842870f9a54ffeb3a828e57eafdec08 (patch) | |
tree | 3c6347502cad39283048a11fe54419465f7da196 /test cases | |
parent | e990291c34aa976c12c88e3b26b45e7ac07b0ef2 (diff) | |
download | meson-6a5a9a384842870f9a54ffeb3a828e57eafdec08.zip meson-6a5a9a384842870f9a54ffeb3a828e57eafdec08.tar.gz meson-6a5a9a384842870f9a54ffeb3a828e57eafdec08.tar.bz2 |
Can do logical and.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/common/40 logic ops/meson.build | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/test cases/common/40 logic ops/meson.build b/test cases/common/40 logic ops/meson.build new file mode 100644 index 0000000..a4466f4 --- /dev/null +++ b/test cases/common/40 logic ops/meson.build @@ -0,0 +1,46 @@ +project('logicopts', 'c') + +t = true +f = false + +if (true) + message('Ok.') +else + error('Not ok.') +endif + +if (false) + error('Not ok.') +else + message('Ok.') +endif + +if (f) + error('Not ok.') +else + message('Ok.') +endif + +if (t) + message('Ok.') +else + error('Not ok.') +endif + +if t and t + message('Ok.') +else + error('Not ok.') +endif + +if t and f + error('Not ok.') +else + message('Ok.') +endif + +if f and t + error('Not ok.') +else + message('Ok.') +endif |