// RUN: %clang_cc1 -DSILENCE -fsyntax-only -verify -Wall %s
// RUN: %clang_cc1 -fsyntax-only -verify -Walloca %s
#ifdef SILENCE
// expected-no-diagnostics
#endifvoidtest1(inta){__builtin_alloca(a);#ifndef SILENCE
// expected-warning@-2 {{use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability}}
#endif}voidtest2(inta){__builtin_alloca_with_align(a,32);#ifndef SILENCE
// expected-warning@-2 {{use of function '__builtin_alloca_with_align' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability}}
#endif}voidtest3(inta){__builtin_alloca_uninitialized(a);#ifndef SILENCE
// expected-warning@-2 {{use of function '__builtin_alloca_uninitialized' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability}}
#endif}voidtest4(inta){__builtin_alloca_with_align_uninitialized(a,32);#ifndef SILENCE
// expected-warning@-2 {{use of function '__builtin_alloca_with_align_uninitialized' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability}}
#endif}