// RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-apple-macosx10.7.0 %s -emit-llvm -o - | FileCheck %s
void ;
// Basic functionality check
// (Note that naked needs to imply noinline to work properly.)
// CHECK: define{{.*}} void @t1() [[NAKED_OPTNONE:#[0-9]+]] {
void
// Make sure this doesn't explode in the verifier.
// (It doesn't really make sense, but it isn't invalid.)
// CHECK: define{{.*}} void @t2() [[NAKED:#[0-9]+]] {
void
// Make sure not to generate prolog or epilog for naked functions.
void
// Make sure naked functions do not attempt to evaluate parameters with a
// variably-modified type. Naked functions get no prolog, so this evaluation
// should not take place.
void
// CHECK: attributes [[NAKED_OPTNONE]] = { naked noinline nounwind optnone{{.*}} }
// CHECK: attributes [[NAKED]] = { naked noinline nounwind{{.*}} }