Files
clang-p2996/clang/test/CodeGen/mips64-nontrivial-return.cpp
Nikita Popov a4d9a8de08 [Clang] Don't match irrelevant attributes in mips return tests (NFC)
The only thing these tests care about from an ABI perspective is sret,
don't also test all the optimization attributes.
2025-01-20 12:41:02 +01:00

18 lines
252 B
C++

// RUN: %clang_cc1 -triple mips64el-unknown-linux -O3 -target-abi n64 -o - -emit-llvm %s | FileCheck %s
class B {
public:
virtual ~B() {}
};
class D : public B {
};
extern D gd0;
// CHECK: _Z4foo1v(ptr {{.*}} sret
D foo1(void) {
return gd0;
}