blob: 718187e368ba6119635b56f26a30a907ee6f62f9 [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.
Duncan P. N. Exon Smith9dd4e4e2015-04-29 16:40:08 +000010// CHECK: !DISubprogram(name: "a", linkageName: "_ZN1AL1aEi",
Duncan P. N. Exon Smithf04be1f2015-03-03 17:25:55 +000011// CHECK-SAME: line: 4
12// CHECK-SAME: isDefinition: true
13// CHECK-SAME: function: i32 (i32)* @_ZN1AL1aEi