From 75cdaea7e2adbc10b3f1044b8abcbbd4decfde38 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Tue, 20 Aug 2019 20:32:06 +0100 Subject: [PATCH] Reinstate program incorrectly deleted in last commit. --- test/Jamfile.v2 | 3 +++ test/cmd_line_check.cpp | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 test/cmd_line_check.cpp 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