[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / sparcv9-class-return.cpp
blob2428219422d8a000b20e76a139c3eb84b99539f1
1 // RUN: %clang_cc1 -triple sparcv9-unknown-unknown -emit-llvm %s -o - | FileCheck %s
3 class Empty {
4 };
6 class Long : public Empty {
7 public:
8 long l;
9 };
11 // CHECK: define{{.*}} i64 @_Z4foo15Empty(i64 %e.coerce)
12 Empty foo1(Empty e) {
13 return e;
16 // CHECK: define{{.*}} %class.Long @_Z4foo24Long(i64 %l.coerce)
17 Long foo2(Long l) {
18 return l;
21 // CHECK: define{{.*}} i64 @_Z4foo34Long(i64 %l.coerce)
22 long foo3(Long l) {
23 return l.l;