Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / virtual-functions-incomplete-types.cpp
blob5e19d92a36b99a8f7faf24dc460e0eb7006ff6ce
1 // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
3 struct A;
5 struct B {
6 virtual void f();
7 virtual A g();
8 };
10 void B::f() { }
12 // CHECK-LABEL: define{{.*}} i32 @_ZN1D1gEv(ptr {{[^,]*}} %this)
13 // CHECK: declare void @_ZN1B1gEv()
15 struct C;
17 struct D {
18 virtual void f();
19 virtual C g();
22 void D::f() { }
24 struct C {
25 int a;
28 C D::g() {
29 return C();