1 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.7.0 %s -emit-llvm -o - | FileCheck %s
2
3 void t1() __attribute__((naked));
4
5 // Basic functionality check
6 // (Note that naked needs to imply noinline to work properly.)
7 // CHECK: define void @t1() nounwind noinline naked {
t1()8 void t1()
9 {
10 }
11
12 // Make sure this doesn't explode in the verifier.
13 // (It doesn't really make sense, but it isn't invalid.)
14 // CHECK: define void @t2() nounwind noinline naked {
t2()15 __attribute((naked, always_inline)) void t2() {
16 }
17