summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/naked.cpp
blob: 34f22b3636b5e603f0866acfeda49a21a0745430 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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 {{(x86_thiscallcc )?}}void @
  // CHECK: call void asm sideeffect
  asm("");
}