blob: ee46f259a42eb6da7825f60f44b8eed211470804 [file] [log] [blame]
Eric Christopher4f95f642012-04-12 00:36:10 +00001// RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s
2
3namespace A {
4 static int a(int b) { return b + 4; }
5
6 int b(int c) { return c + a(c); }
7}
8
9// Verify that a is present and mangled.
Eric Christopher87380aa2012-04-23 19:00:24 +000010// CHECK: metadata !{i32 {{.*}}, i32 0, metadata !6, metadata !"a", metadata !"a", metadata !"_ZN1AL1aEi", metadata !7, i32 4, metadata !8, i1 true, i1 true, i32 0, i32 0, null, i32 256, i1 false, i32 (i32)* @_ZN1AL1aEi, null, null, metadata !1, i32 4} ; [ DW_TAG_subprogram ]