// RUN: %clang_cc1 -std=c++11 -fms-compatibility -fsyntax-only -verify %s
int ;
int ;
int ; // expected-warning{{'always_inline' attribute ignored}} expected-note{{conflicting attribute is here}}
int ; // expected-warning{{'always_inline' attribute ignored}} expected-note{{conflicting attribute is here}}
int ; // expected-warning{{'always_inline' attribute ignored}}
int // expected-note{{conflicting attribute is here}}
int ; // expected-note{{conflicting attribute is here}}
int // expected-warning{{'always_inline' attribute ignored}}
int ; // expected-warning{{'minsize' attribute ignored}} expected-note{{conflicting}}
int ; // expected-warning{{'minsize' attribute ignored}} expected-note{{conflicting}}
int ; // expected-warning{{'minsize' attribute ignored}}
int // expected-note{{conflicting attribute is here}}
int ; // expected-note{{conflicting attribute is here}}
int // expected-warning{{'minsize' attribute ignored}}
// expected-warning{{'always_inline' attribute ignored}}
// expected-warning{{'minsize' attribute ignored}}
void ;
// expected-note 2 {{conflicting}}
void
__forceinline int ; // expected-warning{{'__forceinline' attribute ignored}} expected-note{{conflicting}}
__forceinline int ; // expected-warning{{'__forceinline' attribute ignored}} expected-note{{conflicting}}
__forceinline int ; // expected-warning{{'__forceinline' attribute ignored}}
int // expected-note{{conflicting}}
int ; // expected-note{{conflicting}}
__forceinline int // expected-warning{{'__forceinline' attribute ignored}}
int globalVar ; // expected-warning{{'optnone' attribute only applies to functions}}
int ; // expected-warning{{'optnone' attribute only applies to functions}}
;
;
// Verify that we can specify the [[clang::optnone]] syntax as well.
int ;
int ;
// expected-note {{conflicting}}
int ; // expected-warning{{'always_inline' attribute ignored}}
int globalVar2; //expected-warning{{'optnone' attribute only applies to functions}}
;
;
// Verify that we can handle the [[_Clang::optnone]] and
// [[__clang__::optnone]] spellings, as well as [[clang::__optnone__]].
int ;
int ; // expected-warning {{'__clang__' is a predefined macro name, not an attribute scope specifier; did you mean '_Clang' instead?}}
int ;
int ;
int foo7; // expected-warning {{'optnone' attribute only applies to functions}}