summaryrefslogtreecommitdiffstats
path: root/test cases/d/8 has multi arguments/meson.build
blob: 08970572c3a745bf9b2c59259221251be6e123f2 (plain)
1
2
3
4
5
6
7
8
project('D has arguments test', 'd')

compiler = meson.get_compiler('d')

assert(compiler.compiles('int i;'), 'Basic code test does not compile: ' + compiler.get_id())
assert(compiler.has_multi_arguments(['-I.', '-J.']), 'Multi argument test does not work: ' + compiler.get_id())
assert(compiler.has_argument('-I.'), 'Basic argument test does not work: ' + compiler.get_id())
assert(compiler.has_argument('-flag_a_d_compiler_definitely_does_not_have') == false, 'Basic argument test does not work: ' + compiler.get_id())