1 // RUN: %clang_cc1 %s -fsyntax-only -Wno-unused-value -Wmicrosoft -verify -fms-extensions
6 int a
[]; /* expected-warning {{flexible array member 'a' in otherwise empty struct is a Microsoft extension}} */
12 int c1
[]; /* expected-warning {{flexible array member 'c1' in a union is a Microsoft extension}} */
13 char c2
[]; /* expected-warning {{flexible array member 'c2' in a union is a Microsoft extension}} */
24 enum ENUM1
; // expected-warning {{forward references to 'enum' types are a Microsoft extension}}
30 ENUM2_a
= (enum ENUM2
) 4,
31 ENUM2_b
= 0x9FFFFFFF, // expected-warning {{enumerator value is not representable in the underlying type 'int'}}
32 ENUM2_c
= 0x100000000 // expected-warning {{enumerator value is not representable in the underlying type 'int'}}
38 typedef struct notnested
{
44 typedef struct nested1
{
46 struct notnested var1
;
52 NESTED1
; // expected-warning {{anonymous structs are a Microsoft extension}}
57 struct nested2
; // expected-warning {{anonymous structs are a Microsoft extension}}
66 var
.bad1
; // expected-error {{no member named 'bad1' in 'struct test'}}
67 var
.bad2
; // expected-error {{no member named 'bad2' in 'struct test'}}