xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/debug-info-ptr-to-member-function.cpp (revision 83ee113ee0d94f3844d44065af2311604e9a30ad)
1 // RUN: %clang_cc1 %s -triple x86_64-apple-darwin -g -emit-llvm -o - | FileCheck %s
2 
3 struct T {
4   int method();
5 };
6 
7 void foo(int (T::*method)()) {}
8 
9 // A pointer to a member function is a pair of function- and this-pointer.
10 // CHECK: [ DW_TAG_ptr_to_member_type ] {{.*}} size 128
11