Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / decl-ref-init.cpp
blob1d1fad4657d3aa58a11ac088717e1e2e64fbf99d
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm %s -o - | \
2 // RUN: FileCheck %s
3 // RUN: %clang_cc1 -triple i386-apple-darwin -emit-llvm %s -o - | \
4 // RUN: FileCheck %s
6 struct A {};
8 struct B
9 {
10 operator A&();
11 };
14 struct D : public B {
15 operator A();
18 extern B f();
19 extern D d();
21 int main() {
22 const A& rca = f();
23 const A& rca2 = d();
26 // CHECK: call noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) ptr @_ZN1BcvR1AEv
27 // CHECK: call noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) ptr @_ZN1BcvR1AEv