brintos

brintos / llvm-project-archived public Read only

0
0
Text · 539 B · 0fd5e51 Raw
19 lines · c
1// RUN: %clang_cc1 %s -emit-llvm -funique-internal-linkage-names -o - | FileCheck %s2 3// Check that we do not crash when overloading extern functions.4 5inline void overloaded_external() {}6extern void overloaded_external();7 8// CHECK: define internal void @overloaded_internal() [[ATTR:#[0-9]+]] {9static void overloaded_internal() {}10extern void overloaded_internal();11 12void markUsed() {13  overloaded_external();14  overloaded_internal();15}16 17// CHECK: attributes [[ATTR]] =18// CHECK-SAME: "sample-profile-suffix-elision-policy"="selected"19