blob: 3f8d8e8389306a8877f6ecaac02d271ed0018137 [file] [log] [blame]
Eric Christopher5d7fe462012-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.
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