// RUN: %clang_cc1 -triple=x86_64-unknown-unknown -verify -fcf-protection=branch -fsyntax-only %s
// Function pointer definition.
typedef void ; // no-warning
typedef void ;
// Dont allow function declaration and definition mismatch.
void ; // expected-note {{previous declaration is here}}
void ; // expected-error {{conflicting types for 'testNoCfCheck'}}
// No variable or parameter declaration
int i; // expected-warning {{'nocf_check' attribute only applies to function}}
void // expected-warning {{'nocf_check' attribute only applies to function}}
// Allow attributed function pointers as well as casting between attributed
// and non-attributed function pointers.
void
// 'nocf_check' Attribute has no parameters.
int ; // expected-error {{'nocf_check' attribute takes no arguments}}