summaryrefslogtreecommitdiff
path: root/build2/cxx-modules/modtest/foo.cxx
blob: 9a6dbd12c05275bb364382f379020f367acc2f2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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;
}
*/