summaryrefslogtreecommitdiffstats
path: root/test cases/common/199 argument syntax/meson.build
blob: b97ca74326fb5f39cf903bd639e570111df29615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
project(
  'argument syntax',
  ['c'],
)

cc = meson.get_compiler('c')

if ['gcc', 'lcc', 'clang', 'intel'].contains(cc.get_id())
  expected = 'gcc'
elif ['msvc', 'clang-cl', 'intel-cl'].contains(cc.get_id())
  expected = 'msvc'
else
  # It's possible that other compilers end up here that shouldn't
  expected = 'other'
endif

assert(cc.get_argument_syntax() == expected,
       'Wrong output for compiler @0@. expected @1@ but got @2@'.format(
         cc.get_id(), expected, cc.get_argument_syntax()))