summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/config/test/boost_fallthrough_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/config/test/boost_fallthrough_test.cpp')
-rw-r--r--src/boost/libs/config/test/boost_fallthrough_test.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/boost/libs/config/test/boost_fallthrough_test.cpp b/src/boost/libs/config/test/boost_fallthrough_test.cpp
new file mode 100644
index 00000000..44b86895
--- /dev/null
+++ b/src/boost/libs/config/test/boost_fallthrough_test.cpp
@@ -0,0 +1,21 @@
+// (C) Copyright John Maddock 2013.
+// Use, modification and distribution are subject to 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)
+
+#include <boost/config.hpp>
+
+int test(int n)
+{
+ switch (n)
+ {
+ case 0:
+ n++;
+ BOOST_FALLTHROUGH;
+ case 1:
+ n++;
+ break;
+ }
+ return n;
+}
+