1 // RUN: %clang_cc1 -triple sparcv9-unknown-unknown -emit-llvm %s -o - | FileCheck %s 2 3 class Empty { 4 }; 5 6 class Long : public Empty { 7 public: 8 long l; 9 }; 10 11 // CHECK: define{{.*}} i64 @_Z4foo15Empty(i64 %e.coerce) foo1(Empty e)12Empty foo1(Empty e) { 13 return e; 14 } 15 16 // CHECK: define{{.*}} %class.Long @_Z4foo24Long(i64 %l.coerce) foo2(Long l)17Long foo2(Long l) { 18 return l; 19 } 20 21 // CHECK: define{{.*}} i64 @_Z4foo34Long(i64 %l.coerce) foo3(Long l)22long foo3(Long l) { 23 return l.l; 24 } 25