diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index db37648f..cfc42ade 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -110,6 +110,9 @@ test-suite config [ compile header_deprecated_test.cpp ] ; +obj has_clang_implicit_fallthrough : cmd_line_check.cpp : + clang:"-std=c++11 -Wimplicit-fallthrough" on all ; + explicit has_clang_implicit_fallthrough ; exe config_info_printer : config_info.cpp ; diff --git a/test/cmd_line_check.cpp b/test/cmd_line_check.cpp new file mode 100644 index 00000000..36b3212e --- /dev/null +++ b/test/cmd_line_check.cpp @@ -0,0 +1,15 @@ +// Copyright 2014 John Maddock. +// +// Distributed under the Boost Software License, Version 1.0. +// +// See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt + +#ifndef __clang__ +# error "This test is for Clang only" +#endif + +int main() +{ + return 0; +} \ No newline at end of file