diff options
Diffstat (limited to 'build2/cxx-modules/modtest/bar.cxx')
-rw-r--r-- | build2/cxx-modules/modtest/bar.cxx | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/build2/cxx-modules/modtest/bar.cxx b/build2/cxx-modules/modtest/bar.cxx new file mode 100644 index 0000000..457f29e --- /dev/null +++ b/build2/cxx-modules/modtest/bar.cxx @@ -0,0 +1,35 @@ +// file : bar.cxx -*- C++ -*- +// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +//#include <string> + +#include <bar> + +//using namespace std; + +int +bar_value (int v) +{ + return v * 100; +} + +bar:: +bar (int v) + : v_ (v) +{ +} + +int bar:: +value () +{ + return v_ * 1000; +} + +/* +string bar:: +message (const char* s) const +{ + return string ("bar: ") + s; +} +*/ |