// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -verify %s
// UNSUPPORTED: ppc64be
/// Prevent use of all builtins.
void
void
/// Prevent use of specific builtins.
void
void
/// Many times the same builtin is fine.
void
void
void
void
/// Invalid builtin name.
void
// expected-warning@-1 {{'not_a_builtin' is not a valid builtin name for 'no_builtin'}}
/// Can't use bare no_builtin with a named one.
void
// expected-error@-1 {{empty 'no_builtin' cannot be composed with named ones}}
/// Can't attach attribute to a variable.
int variable;
// expected-warning@-1 {{'no_builtin' attribute only applies to functions}}
/// Can't attach attribute to a declaration.
void ;
// expected-error@-1 {{no_builtin attribute is permitted on definitions only}}
;
/// Can't attach attribute to an aliased function.
void
void ;
// expected-error@-1 {{no_builtin attribute is permitted on definitions only}}