1 // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2 // RUN: %clang_cc1 -triple x86_64-windows -emit-llvm %s -o - | FileCheck %s
3 
4 class TestNaked {
5 public:
6   void NakedFunction();
7 };
8 
NakedFunction()9 __attribute__((naked)) void TestNaked::NakedFunction() {
10   // CHECK-LABEL: define {{(dso_local )?}}{{(x86_thiscallcc )?}}void @
11   // CHECK: call void asm sideeffect
12   asm("");
13 }
14