Boost logo

Boost-Build :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-02-28 12:27:02


Jody Hagins wrote:
> How do I integrate tests that are not supposed to compile. For
> example, assume that a specification says that invoking the copy
> constructor should not compile. How do I wrote such a test, and
> integrate it into the build/test system such that a failed
> compilation is treated as a successful test?

You can use the compile-fail rule. See, e.g.,
http://www.boost.org/libs/static_assert/Jamfile.

Jonathan

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk