llvm-for-llvmta/tools/clang/test/CodeGenCXX/naked.cpp

14 lines
362 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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("");
}