OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [20000926-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Copyright (C) 2000  Free Software Foundation.
2
   by William Cohen  <wcohen@redhat.com>  */
3
 
4
/* { dg-do compile } */
5
/* { dg-options "" } */
6
#include <limits.h>
7
 
8
struct PDATA
9
{
10
    unsigned int  Dummy:(sizeof(int)*CHAR_BIT);
11
    const char*   PName;
12
};
13
 
14
typedef struct PDATA    P_DATA;
15
 
16
struct PLAYBOOK {
17
        const char * BookName;
18
        P_DATA       Play[0];
19
};
20
 
21
struct PLAYBOOK playbook  =
22
{
23
  "BookName",
24
  {
25
    { 1, "PName0" }, /* { dg-warning "(excess elements)|(near initialization)" "" } */
26
  }
27
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.