Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / unique-internal-linkage-names.c
blob0fd5e516eec41d83336a2611e0db20bd36941273
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();
12 void markUsed() {
13 overloaded_external();
14 overloaded_internal();
17 // CHECK: attributes [[ATTR]] =
18 // CHECK-SAME: "sample-profile-suffix-elision-policy"="selected"