mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-21 02:59:15 +00:00
Test for PR1942.
llvm-svn: 46357
This commit is contained in:
parent
8c621a474e
commit
ced29554f7
23
test/C++Frontend/2008-01-25-ResultIsParam.cpp
Normal file
23
test/C++Frontend/2008-01-25-ResultIsParam.cpp
Normal file
@ -0,0 +1,23 @@
|
||||
// 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user