Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/Wc90-c99-compat-5.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-std=gnu90 -pedantic-errors -Wno-c90-c99-compat" } */ _Bool b; _Complex double c = __builtin_complex (0.0, 0.0); long long l; struct A { int i; char a[]; }; struct { long int b: 2; } s; const const int i; volatile volatile int v; struct S { int a[2]; }; extern struct S foo (void); enum { E, }; void fn1 (char [*]); void fn2 (char x[static 4]) { int i = (int) { 1 }; struct A a = { .i = 3 }; } void fn3 (int n) { n = 3; int i; } void fn4 (int n) { n = 3; __extension__ int i; } void fn5 (void) { (foo ()).a[0]; } #define F(a) a void fn6 (void) { F(); } void fn7 (int n, int a[n]);