mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-09 09:46:06 +00:00

The tests that failed on a windows host have been fixed. Original message: Start setting dso_local for COFF. With this there are still some GVs where we don't set dso_local because setGVProperties is never called. I intend to fix that in followup commits. This is just the bare minimum to teach shouldAssumeDSOLocal what it should do for COFF. llvm-svn: 325940
14 lines
362 B
C++
14 lines
362 B
C++
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
|
|
// RUN: %clang_cc1 -triple x86_64-windows -emit-llvm %s -o - | FileCheck %s
|
|
|
|
class TestNaked {
|
|
public:
|
|
void NakedFunction();
|
|
};
|
|
|
|
__attribute__((naked)) void TestNaked::NakedFunction() {
|
|
// CHECK-LABEL: define {{(dso_local )?}}{{(x86_thiscallcc )?}}void @
|
|
// CHECK: call void asm sideeffect
|
|
asm("");
|
|
}
|