// RUN: %clang_cc1 -verify -fsyntax-only %s
extern int ;
extern int g0 ;
extern int g1 ;
int ;
int g2 ;
int g3 ; // expected-warning {{'weak_import' attribute cannot be specified on a definition}}
int ;
void
; // expected-warning {{'weak' attribute only applies to variables, functions, and classes}}
; // expected-warning {{'weak_import' attribute only applies to variables and functions}}
static int ; // expected-error {{weak declaration cannot have internal linkage}}
static int x ; // expected-error {{weak declaration cannot have internal linkage}}
// rdar://9538608
int C; // expected-note {{previous declaration is here}}
extern int C ; // expected-warning {{an already-declared variable is made a weak_import declaration}}
static int pr14946_x;
extern int pr14946_x ; // expected-error {{weak declaration cannot have internal linkage}}
static void ;
void ; // expected-error {{weak declaration cannot have internal linkage}}