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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [uninit-E.c] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
/* Test we do warn about initializing variable with self when -Winit-self is supplied. */
2
/* { dg-do compile } */
3
/* { dg-options "-O -Wuninitialized -Winit-self" } */
4
 
5
int f()
6
{
7
  int i = i; /* { dg-warning "i" "uninitialized variable warning" }  */
8
  return i;
9
}

powered by: WebSVN 2.1.0

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