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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [Wcxx-compat-20.c] - Blame information for rev 753

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-Wc++-compat" } */
3
typedef struct s { const int i; } s; /* { dg-message "should be initialized" } */
4
union u {const int a; double b;}; /* { dg-message "should be initialized" } */
5
struct ts { int a; s v;};
6
struct ta { int a; s v[2];};
7
 
8
void f ()
9
{
10
  s v1; /* { dg-warning "uninitialized const member in" } */
11
  s va[2]; /* { dg-warning "uninitialized const member in" } */
12
  union u v2; /* { dg-warning "uninitialized const member in" } */
13
  struct ts v3; /* { dg-warning "uninitialized const member in" } */
14
  struct ta ta[2]; /* { dg-warning "uninitialized const member in" } */
15
}

powered by: WebSVN 2.1.0

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