blob: 1d1fad4657d3aa58a11ac088717e1e2e64fbf99d [file] [log] [blame]
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm %s -o - | \
// RUN: FileCheck %s
// RUN: %clang_cc1 -triple i386-apple-darwin -emit-llvm %s -o - | \
// RUN: FileCheck %s
struct A {};
struct B
{
operator A&();
};
struct D : public B {
operator A();
};
extern B f();
extern D d();
int main() {
const A& rca = f();
const A& rca2 = d();
}
// CHECK: call noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) ptr @_ZN1BcvR1AEv
// CHECK: call noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) ptr @_ZN1BcvR1AEv