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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [Wredundant-decls-2.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Test for -Wredundant-decls warnings */
2
/* { dg-do compile } */
3
/* { dg-options "-Wredundant-decls" } */
4
 
5
int j = 5; /* { dg-warning "previous" } */
6
int j;     /* { dg-warning "redundant" } */
7
 
8
static int k;
9
static int k = 5; /* { dg-warning "previous" } */
10
static int k;     /* { dg-warning "redundant" } */
11
 
12
static int l = 5; /* { dg-warning "previous" } */
13
static int l;     /* { dg-warning "redundant" } */
14
 
15
static int m;     /* { dg-warning "previous" } */
16
static int m;     /* { dg-warning "redundant" } */
17
static int m = 5;
18
 
19
int n;           /* { dg-warning "previous" } */
20
int n;           /* { dg-warning "redundant" } */
21
int n = 5;
22
 
23
static int o;
24
static int o = 5;
25
 
26
int p;
27
int p = 5;

powered by: WebSVN 2.1.0

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