[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / unique-internal-linkage-names.c
blob6f8f243ef14a394f02685b62afd10689c2209d71
1 // RUN: %clang_cc1 %s -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"