summaryrefslogtreecommitdiff
path: root/build2/cxx-modules/modtest/bar.cxx
blob: 457f29e283668073da05634c4cb140d69746fcb0 (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
// 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;
}
*/