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