OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
/cp
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
inline1.C
1
// { dg-do assemble }
2
// { dg-options "-O2 -Winline" }
3
// Origin: Martin Reinecke <martin@MPA-Garching.MPG.DE>
4
5
class foo
6
{
7
public:
8
float x;
9
10
foo (float xval)
11
: x (xval) {}
12
13
foo operator+ (const foo &foo2) const
14
{ return foo (x+foo2.x); }
15
};
16
17
int main()
18
{
19
foo f=foo(1)+foo(2);
20
}