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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [c-c++-common/] [Wunused-var-12.c] - Rev 714

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

/* PR c++/44780 */
/* { dg-do compile } */
/* { dg-options "-Wunused" } */
/* { dg-additional-options "-fno-common" { target { { hppa*-*-hpux* } && { ! lp64 } } } } */
 
typedef double vec __attribute__ ((__vector_size__ (16)));
vec c, d;
 
void
foo (void)
{
  vec a;
  vec b;
  a = c;
  b = a;
  d = b;
}
 
void
bar (void)
{
  vec a;
  vec b;	/* { dg-warning "set but not used" } */
  a = c;
  b = a;
}
 

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

powered by: WebSVN 2.1.0

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