1// RUN: %clang_cc1 %s -triple x86_64-apple-darwin -debug-info-kind=limited -emit-llvm -o - | FileCheck -check-prefix=CHECK -check-prefix=DARWIN-X64 %s
2// RUN: %clang_cc1 %s -triple x86_64-pc-win32     -debug-info-kind=limited -emit-llvm -o - | FileCheck -check-prefix=CHECK -check-prefix=WIN32-X64 %s
3
4struct T {
5  int method();
6};
7
8void foo(int (T::*method)()) {}
9
10struct Incomplete;
11
12int (Incomplete::**bar)();
13// A pointer to a member function is a pair of function- and this-pointer.
14// CHECK: !DIDerivedType(tag: DW_TAG_ptr_to_member_type,
15// DARWIN-X64-SAME:           size: 128
16// WIN32-X64-NOT:             size:
17// CHECK-SAME:                extraData: {{.*}})
18
19// CHECK: !DIDerivedType(tag: DW_TAG_ptr_to_member_type,
20// DARWIN-X64-SAME:      size: 128
21// WIN32-X64-SAME:       size: 64
22