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 A {
6   virtual A *clone(const char *f, ...) = 0;
7 };
8 struct B : virtual A {
9   // expected-error@+1 2 {{cannot compile this return-adjusting thunk with variadic arguments yet}}
10   B *clone(const char *f, ...) override;
11 };
12 struct C : B { int c; };
13 C c;
14