1 /* RUN: %clang_cc1 %s -fsyntax-only -pedantic -verify
4 extern struct {int a
;} x
; // expected-note {{previous declaration is here}}
5 extern struct {int a
;} x
; // expected-error {{redeclaration of 'x'}}
9 // Per C99 6.7.2.3, since the outer and inner "struct x"es have different
10 // scopes, they don't refer to the same type, and are therefore incompatible
11 struct x
{int a
;} *c
= b
; // expected-warning {{incompatible pointer types}}
16 struct x
{char x
;} s
= r
; // expected-error {{initializing 'struct x' with an expression of incompatible type 'struct x'}}