brintos

brintos / llvm-project-archived public Read only

0
0
Text · 362 B · c6fe133 Raw
14 lines · cpp
1// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s2// RUN: %clang_cc1 -triple x86_64-windows -emit-llvm %s -o - | FileCheck %s3 4class TestNaked {5public:6  void NakedFunction();7};8 9__attribute__((naked)) void TestNaked::NakedFunction() {10  // CHECK-LABEL: define {{(dso_local )?}}{{(x86_thiscallcc )?}}void @11  // CHECK: call void asm sideeffect12  asm("");13}14