mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-15 07:59:57 +00:00
a699574651
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46357 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
346 B
C++
24 lines
346 B
C++
// RUN: %llvmgcc %s -S -o - | not grep {@_ZN3fooC1Ev.*result}
|
|
// PR1942
|
|
|
|
class foo
|
|
{
|
|
public:
|
|
int a;
|
|
int b;
|
|
|
|
foo(void) : a(0), b(0) {}
|
|
|
|
foo(int aa, int bb) : a(aa), b(bb) {}
|
|
|
|
const foo operator+(const foo& in) const;
|
|
|
|
};
|
|
|
|
const foo foo::operator+(const foo& in) const {
|
|
foo Out;
|
|
Out.a = a + in.a;
|
|
Out.b = b + in.b;
|
|
return Out;
|
|
}
|