netbsd/external/bsd/llvm/dist/clang/test/CodeGenCXX/microsoft-abi-vmemptr-fastcall.cpp
2015-10-15 10:25:28 +02:00

12 lines
387 B
C++

// RUN: %clang_cc1 -fms-extensions -triple i686-pc-windows-msvc %s -emit-llvm-only -verify
// We reject this because LLVM doesn't forward the second regparm through the
// thunk.
struct A {
virtual void __fastcall f(int a, int b); // expected-error {{cannot compile this pointer to fastcall virtual member function yet}}
};
void (__fastcall A::*doit())(int, int) {
return &A::f;
}