| Reid Kleckner | c347351 | 2014-08-29 21:43:29 +0000 | [diff] [blame] | 1 | // 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 | |||||
| 6 | struct A { | ||||
| 7 | virtual void __fastcall f(int a, int b); | ||||
| 8 | }; | ||||
| 9 | void (__fastcall A::*doit())(int, int) { | ||||
| 10 | return &A::f; // expected-error {{cannot compile this pointer to fastcall virtual member function yet}} | ||||
| 11 | } | ||||