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