Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / ms-thunks-variadic-return.cpp
blobae306ab4e0b4cbe7e2e243162650e2f0e2bda6e1
1 // RUN: %clang_cc1 -fno-rtti-data -triple x86_64-windows-msvc -emit-llvm-only %s -verify
3 // Verify that we error out on this return adjusting thunk that we can't emit.
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;
12 struct C : B { int c; };
13 C c;