summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/microsoft-abi-vmemptr-fastcall.cpp
blob: 6d42b8504abfdff1db55780e048cb498d9c074e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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;
}