blob: 59c7471f7ca6a07679f3631285088bc8d35827fb [file] [log] [blame]
Douglas Katzman3459ce22015-10-08 04:24:12 +00001// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin %s -o - | FileCheck %s
Eric Christopher5d7fe462012-04-12 00:36:10 +00002
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.
Peter Collingbourne0900fe02015-11-05 22:04:14 +000010// CHECK: define internal i32 @_ZN1AL1aEi({{.*}} !dbg [[DBG:![0-9]+]]
11// CHECK: [[DBG]] = distinct !DISubprogram(name: "a", linkageName: "_ZN1AL1aEi",
Duncan P. N. Exon Smithf04be1f2015-03-03 17:25:55 +000012// CHECK-SAME: line: 4
13// CHECK-SAME: isDefinition: true