brintos

brintos / llvm-project-archived public Read only

0
0
Text · 551 B · 1d1fad4 Raw
28 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm %s -o - | \2// RUN: FileCheck %s3// RUN: %clang_cc1 -triple i386-apple-darwin -emit-llvm %s -o - | \4// RUN: FileCheck %s5 6struct A {};7 8struct B 9{ 10  operator A&();11}; 12 13 14struct D : public B {15  operator A();16};17 18extern B f(); 19extern D d(); 20 21int main() {22	const A& rca = f();23	const A& rca2 = d();24}25 26// CHECK: call noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) ptr @_ZN1BcvR1AEv27// CHECK: call noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) ptr @_ZN1BcvR1AEv28