Fix typo in test case
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / inline1.C
blobc4c71b797b4c06543fe13cb531a16e74e86215e2
1 // Build don't link:
2 // Origin: Martin Reinecke <martin@MPA-Garching.MPG.DE>
3 // Special g++ Options: -O2 -Winline
5 class foo
7   public:
8     float x;
10     foo (float xval)
11       : x (xval) {}
13     foo operator+ (const foo &foo2) const
14       { return foo (x+foo2.x); }
17 int main()
19   foo f=foo(1)+foo(2);