summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/microsoft-abi-nontrivial-memptr-thunks.cpp
blob: becec2d86f994935292e35b25678f721ae13982e (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -fno-rtti -emit-llvm-only -triple=i386-pc-win32 %s -verify

struct A {
  A();
  ~A();
  int a;
};
struct B {
  virtual void f(A); // expected-error {{cannot compile this non-trivial argument copy for thunk yet}}
};
void (B::*mp)(A) = &B::f;
OpenPOWER on IntegriCloud