// RUN: %clang_cc1 -verify -fsyntax-only -triple x86_64-apple-darwin9 %s
int x ; // expected-error {{'section' attribute requires a string}}
// rdar://4341926
int y ; // expected-error {{mach-o section specifier requires a segment and section separated by a comma}}
// PR6007
void
// pr9356
void ; // expected-note {{previous attribute is here}}
void // expected-warning {{section does not match previous declaration}}
; // expected-error {{'section' attribute only applies to}}
extern int a; // expected-note {{previous declaration is here}}
int *b = &a;
extern int a ; // expected-warning {{section attribute is specified on redeclared variable}}
// Not a warning.
int c;
int c ;
// Also OK.
;
extern struct r_debug _r_debug;
struct r_debug _r_debug ;
// Section type conflicts between functions and variables
void ; // expected-note {{declared here}}
void
const int const_global_var = 10; // expected-error {{'const_global_var' causes a section type conflict with 'test3'}}
void ; // expected-note {{declared here}}
void
int mut_global_var = 10; // expected-error {{'mut_global_var' causes a section type conflict with 'test4'}}
const int global_seg5sec5 = 10; // expected-note {{declared here}}
void ; // expected-error {{'test5' causes a section type conflict with 'global_seg5sec5'}}
void
void ;
const int global_seg6sec6 = 10; // expected-note {{declared here}}
void ; // expected-error {{'test6' causes a section type conflict with 'global_seg6sec6'}}
void