// RUN: %clang_cc1 -fsyntax-only -verify %s
typedef int kern_return_t;
kern_return_t var = KERN_SUCCESS; // expected-warning{{'mig_server_routine' attribute only applies to functions, Objective-C methods, and blocks}}
void ; // expected-warning{{'mig_server_routine' attribute only applies to routines that return a kern_return_t}}
int ; // expected-warning{{'mig_server_routine' attribute only applies to routines that return a kern_return_t}}
kern_return_t ; // no-warning
kern_return_t ; // no-warning
kern_return_t
kern_return_t
kern_return_t ; // expected-error{{'mig_server_routine' attribute takes no arguments}}