1 // RUN: %clang_cc1 %s -emit-llvm -funique-internal-linkage-names -o - | FileCheck %s
3 // Check that we do not crash when overloading extern functions.
5 inline void overloaded_external() {}
6 extern void overloaded_external();
8 // CHECK: define internal void @overloaded_internal() [[ATTR:#[0-9]+]] {
9 static void overloaded_internal() {}
10 extern void overloaded_internal();
13 overloaded_external();
14 overloaded_internal();
17 // CHECK: attributes [[ATTR]] =
18 // CHECK-SAME: "sample-profile-suffix-elision-policy"="selected"