// RUN: %clang_cc1 -std=c++11 -triple x86_64-unknown-linux-gnu -fsyntax-only -verify %s
;
; // expected-warning {{'no_caller_saved_registers' only applies to function types; type here is 'struct a'}}
void // expected-error {{'no_caller_saved_registers' attribute takes no arguments}}
void
void
typedef void ;
int ; // expected-warning {{'no_caller_saved_registers' only applies to function types; type here is 'float'}}
typedef void ;
void // expected-note {{previous declaration is here}}
void ; // expected-error {{function declared with 'no_caller_saved_registers' attribute was previously declared without the 'no_caller_saved_registers' attribute}}
int