summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/mips64-nontrivial-return.cpp
blob: 8aff9ab32f0f1f478253e65f931d350df9fa4fc9 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang -target mips64el-unknown-linux -ccc-clang-archs mips64el -O3 -S -mabi=n64 -o - -emit-llvm %s | FileCheck %s

class B {
public:
  virtual ~B() {}
};

class D : public B {
};

extern D gd0;

// CHECK: _Z4foo1v(%class.D* noalias nocapture sret

D foo1(void) {
  return gd0;
}