// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
;
;
friend int x; // expected-error {{'friend' used outside of class}}
friend ; // expected-error {{'friend' used outside of class}}
;
;
inline void // expected-note {{previous definition is here}}
;
;
friend // expected-error {{'friend' used outside of class}}
some_template<foo, bar>& // expected-error {{use of undeclared identifier 'foo'}}
; // expected-error {{expected unqualified-id}}