From f8524c42a8477986045a9b05833926ac510ad53d Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 1 Mar 2017 12:02:30 +0200 Subject: [PATCH] Add test for a MSVC parsing problem in make_shared --- test/Jamfile.v2 | 2 ++ test/make_shared_msvc_test.cpp | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 test/make_shared_msvc_test.cpp diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 5248d36..1814bd8 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -205,5 +205,7 @@ import testing ; [ compile-fail pointer_cast_dy_fail3.cpp ] [ run sp_nothrow_test.cpp ] + + [ compile make_shared_msvc_test.cpp ] ; } diff --git a/test/make_shared_msvc_test.cpp b/test/make_shared_msvc_test.cpp new file mode 100644 index 0000000..84de4a5 --- /dev/null +++ b/test/make_shared_msvc_test.cpp @@ -0,0 +1,19 @@ +// +// make_shared_msvc_test.cpp +// +// Copyright 2017 Peter Dimov +// +// 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 +// + +template struct value +{ +}; + +#include + +int main() +{ +}