// RUN: %clang_cc1 -fsyntax-only -verify %s
int ;
;
void
;
void
;
;
int // expected-error {{out-of-line definition of 'f' does not match any declaration in 'Y'}}
;
using test1::Foo;
void
;
// This out-of-line definition was fine...
void // expected-error {{out-of-line definition of 'cart' does not match any declaration in 'Crash'}}
// ...while this one crashed clang
void // expected-error {{out-of-line definition of 'chart' does not match any declaration in 'Crash'}}
;
int
void
;
int // expected-error {{out-of-line definition of 'typo_' does not match any declaration in 'J'}}
// Ensure we correct the redecl of Foo::isGood to Bar::Foo::isGood and not
// Foo::IsGood even though Foo::IsGood is technically a closer match since it
// already has a body. Also make sure Foo::beEvil is corrected to Foo::BeEvil
// since it is a closer match than Bar::Foo::beEvil and neither have a body.
;
void // expected-error {{out-of-line definition of 'func' does not match any declaration in 'CVQualFun'}}