xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/PR5093-static-member-function.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 %s -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s
2f4a2713aSLionel Sambuc struct a {
3f4a2713aSLionel Sambuc   static void f();
4f4a2713aSLionel Sambuc };
5f4a2713aSLionel Sambuc 
g(a * a)6f4a2713aSLionel Sambuc void g(a *a) {
7f4a2713aSLionel Sambuc   // CHECK: call void @_ZN1a1fEv()
8f4a2713aSLionel Sambuc   a->f();
9f4a2713aSLionel Sambuc }
10