2016-07-28 06:04:24 +08: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() {
|
2016-07-30 03:43:28 +08:00
|
|
|
// CHECK-LABEL: define {{(x86_thiscallcc )?}}void @
|
2016-07-28 06:04:24 +08:00
|
|
|
// CHECK: call void asm sideeffect
|
|
|
|
asm("");
|
|
|
|
}
|