2012-10-10 04:46:28 +08:00
|
|
|
// RUN: %clang -target mips64el-unknown-linux -O3 -S -mabi=n64 -o - -emit-llvm %s | FileCheck %s
|
2012-02-08 09:31:22 +08:00
|
|
|
|
|
|
|
class B {
|
|
|
|
public:
|
|
|
|
virtual ~B() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
class D : public B {
|
|
|
|
};
|
|
|
|
|
|
|
|
extern D gd0;
|
|
|
|
|
2013-02-01 07:17:12 +08:00
|
|
|
// CHECK: _Z4foo1v(%class.D* noalias nocapture sret
|
2012-02-08 09:31:22 +08:00
|
|
|
|
|
|
|
D foo1(void) {
|
|
|
|
return gd0;
|
|
|
|
}
|