From b86c4cc950cb454acc0da8e5339ae194224c3436 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 18 Jun 2024 02:23:56 +0300 Subject: [PATCH] Add test for issue #69 --- test/Jamfile.v2 | 2 ++ test/issue_69.cpp | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 test/issue_69.cpp diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 39bd416..1fef348 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -110,3 +110,5 @@ compile vector.cpp ; compile vector_c.cpp ; compile zip_view.cpp ; run string.cpp ; + +run issue_69.cpp ; diff --git a/test/issue_69.cpp b/test/issue_69.cpp new file mode 100644 index 0000000..77d52e4 --- /dev/null +++ b/test/issue_69.cpp @@ -0,0 +1,13 @@ +// Copyright 2024 Peter Dimov +// Distributed under the Boost Software License, Version 1.0. +// https://www.boost.org/LICENSE_1_0.txt + +#include + +enum test { zero, one }; + +int main() +{ + boost::mpl::integral_c m; + return m.value; +}