xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/debug-info-static-fns.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1 // RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s
2 
3 namespace A {
a(int b)4   static int a(int b) { return b + 4; }
5 
b(int c)6   int b(int c) { return c + a(c); }
7 }
8 
9 // Verify that a is present and mangled.
10 // CHECK: !"0x2e\00a\00a\00_ZN1AL1aEi\00{{.*}}", {{.*}}, i32 (i32)* @_ZN1AL1aEi, {{.*}} ; [ DW_TAG_subprogram ] [line 4] [local] [def] [a]
11