blob: 9d55383d656fdd2da6dac773574cc6d9b5710a66 [file] [log] [blame]
Reid Klecknerc3473512014-08-29 21:43:29 +00001// RUN: %clang_cc1 -triple i686-pc-windows-msvc %s -emit-llvm-only -verify
2
3// We reject this because LLVM doesn't forward the second regparm through the
4// thunk.
5
6struct A {
7 virtual void __fastcall f(int a, int b);
8};
9void (__fastcall A::*doit())(int, int) {
10 return &A::f; // expected-error {{cannot compile this pointer to fastcall virtual member function yet}}
11}