Reinstate program incorrectly deleted in last commit.

This commit is contained in:
jzmaddock
2019-08-20 20:32:06 +01:00
parent b97ab76eae
commit 75cdaea7e2
2 changed files with 18 additions and 0 deletions

View File

@ -110,6 +110,9 @@ test-suite config
[ compile header_deprecated_test.cpp ] [ compile header_deprecated_test.cpp ]
; ;
obj has_clang_implicit_fallthrough : cmd_line_check.cpp :
<toolset>clang:<cxxflags>"-std=c++11 -Wimplicit-fallthrough" <warnings-as-errors>on <warnings>all ;
explicit has_clang_implicit_fallthrough ; explicit has_clang_implicit_fallthrough ;
exe config_info_printer : config_info.cpp ; exe config_info_printer : config_info.cpp ;

15
test/cmd_line_check.cpp Normal file
View File

@ -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;
}