1 /* { dg-options "-fms-extensions" } */
2 /* Verify that enabling Microsoft mode doesn't twist C++ as much as
3 their corresponding C extensions. Checked vs
4 Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
10 struct A; /* forward decl of B::A. */
13 char testB[sizeof(B) == sizeof(A) ? 1 : -1];
16 struct D { char d; }; /* decl of C::D. */
19 char testC[sizeof(C) == sizeof(A) ? 1 : -1];
20 char testD[sizeof(C::D) == sizeof(A) ? 1 : -1];
26 char testE[sizeof(E) == 2 * sizeof(A) ? 1 : -1];
27 char testEz[sizeof( ((E *)0)->z )];
29 typedef struct A typedef_A;
31 typedef_A; /* { dg-error "does not declare anything" } */
34 char testF[sizeof(F) == sizeof(A) ? 1 : -1];