brintos

brintos / llvm-project-archived public Read only

0
0
Text · 425 B · ae306ab Raw
14 lines · cpp
1// RUN: %clang_cc1 -fno-rtti-data -triple x86_64-windows-msvc -emit-llvm-only %s -verify2 3// Verify that we error out on this return adjusting thunk that we can't emit.4 5struct A {6  virtual A *clone(const char *f, ...) = 0;7};8struct 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};12struct C : B { int c; };13C c;14