// RUN: %clang_cc1 -fsyntax-only -verify -Wno-strict-prototypes %s
// RUN: not %clang_cc1 -fsyntax-only -Wno-strict-prototypes %s -fdiagnostics-parseable-fixits 2>&1 | \
// RUN: FileCheck %s --check-prefix=C
// RUN: not %clang_cc1 -fsyntax-only -Wno-strict-prototypes %s -fdiagnostics-parseable-fixits -x c++ -std=c++11 2>&1 | \
// RUN: FileCheck %s --check-prefix=CXX11
int x ; //expected-warning{{'sentinel' attribute only applies to functions, methods and blocks}}
void ; // expected-note {{function has been explicitly marked sentinel here}}
void ;
void ; //expected-error{{'sentinel' attribute requires parameter 1 to be an integer constant}}
void ; //expected-error{{'sentinel' attribute takes no more than 2 arguments}}
void ; //expected-error{{parameter 1 less than zero}}
void ; // expected-error{{parameter 2 not 0 or 1}}
void ; //expected-warning{{'sentinel' attribute only supported for variadic functions}}
void ; // expected-warning {{'sentinel' attribute requires named arguments}}
void