repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix typo in test case
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
inline1.C
blob
c4c71b797b4c06543fe13cb531a16e74e86215e2
1
// Build don't link:
2
// Origin: Martin Reinecke <martin@MPA-Garching.MPG.DE>
3
// Special g++ Options: -O2 -Winline
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
}