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