]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/c_file.py
3 # Copyright 2003 Vladimir Prus
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
7 # Test that C files are compiled by a C compiler.
11 t
= BoostBuild
.Tester(use_test_config
=False)
13 t
.write("jamroot.jam", """
15 exe hello : hello.cpp a.c ;
18 t
.write("hello.cpp", """
20 int main() { return foo(); }
24 // This will not compile unless in C mode.
34 t
.expect_addition("bin/$toolset/debug*/hello.exe")