projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
After recent changes we fail to optimize this test
[oota-llvm.git]
/
test
/
C++Frontend
/
2008-01-25-ResultIsParam.cpp
1
// RUN: %llvmgcc %s -S -o - | not grep {@_ZN3fooC1Ev.*result}
2
// PR1942
3
4
class foo
5
{
6
public:
7
int a;
8
int b;
9
10
foo(void) : a(0), b(0) {}
11
12
foo(int aa, int bb) : a(aa), b(bb) {}
13
14
const foo operator+(const foo& in) const;
15
16
};
17
18
const foo foo::operator+(const foo& in) const {
19
foo Out;
20
Out.a = a + in.a;
21
Out.b = b + in.b;
22
return Out;
23
}