1 // RUN: %clang_cc1 -fno-rtti-data -triple x86_64-windows-msvc -emit-llvm-only %s -verify
2 
3 // Verify that we error out on this return adjusting thunk that we can't emit.
4 
5 struct Incomplete;
6 
7 struct A {
8   virtual A * clone(Incomplete p) = 0;
9 };
10 struct B : virtual A {
11   // expected-error@+1 2 {{cannot compile this return-adjusting thunk with incomplete parameter type yet}}
12   B * clone(Incomplete p) override;
13 };
14 struct C : B { int c; };
15 C c;
16