// RUN: %clang_cc1 -fsyntax-only -verify %s
void ;
void ;
void ;
void // expected-note {{previous definition is here}}
void ; // expected-warning {{must precede definition}}
void ;
int bar;
extern int bar;
int bar;
int bar ;
int bar ;
extern int bar ;
int bar = 0; // expected-note {{previous definition is here}}
int bar ; // no warning as it matches the existing
// attribute.
int bar ; // expected-warning {{must precede definition}}
int bar;
;
; // expected-warning {{must precede definition}}
;
;
;
;
;
; // expected-error {{visibility does not match previous declaration}}