tests/15 mixed pch: Add a test using only the headers
Which is supposed to work for GCC and Clang.
@@ -7,3 +7,13 @@ exe = executable(
c_pch : ['pch/func.h', 'pch/func_pch.c'],
cpp_pch : ['pch/main_pch.cc', 'pch/main.h'],
)
+
+cc = meson.get_compiler('c')
+if cc.get_id() != 'msvc'
+ exe2 = executable(
+ 'prog2',
+ files('main.cc', 'func.c'),
+ c_pch : 'pch/func.h',
+ cpp_pch : 'pch/main.h',
+ )
+endif
