From 0f7dcbe6184756e7732898b30c4d65674aea6d64 Mon Sep 17 00:00:00 2001 From: Arkadiy Vertleyb Date: Sun, 2 Oct 2005 00:47:15 +0000 Subject: [PATCH] made ODR test runnable [SVN r31160] --- test/Jamfile | 4 ++-- test/odr1.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/Jamfile b/test/Jamfile index 39409c2..5c43827 100755 --- a/test/Jamfile +++ b/test/Jamfile @@ -55,6 +55,6 @@ test-suite "typeof" [ compile std.cpp : BOOST_TYPEOF_NATIVE : std_native ] [ compile std.cpp : BOOST_TYPEOF_COMPLIANT : std_emulation ] - [ link odr1.cpp odr2.cpp : BOOST_TYPEOF_NATIVE : odr_native ] - [ link odr1.cpp odr2.cpp : BOOST_TYPEOF_COMPLIANT : odr_emulation ] + [ run odr1.cpp odr2.cpp : : : BOOST_TYPEOF_NATIVE : odr_native ] + [ run odr1.cpp odr2.cpp : : : BOOST_TYPEOF_COMPLIANT : odr_emulation ] ; diff --git a/test/odr1.cpp b/test/odr1.cpp index e21b8b2..a11657c 100755 --- a/test/odr1.cpp +++ b/test/odr1.cpp @@ -1,6 +1,8 @@ #include "odr.hpp" +#include int main() { + std::cout << "No ODR violation detected" << std::endl; return 0; }