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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wunused-label-2.C] - Blame information for rev 749

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-Wunused" }
3
 
4
// If __attribute__ ((unused)) follows a label and precedes a
5
// declaration, we should get a warning for the label, not the
6
// declaration.
7
 
8
void
9
f1()
10
{
11
  int i1;                               // { dg-warning "unused variable" }
12
 l1: __attribute__ ((unused)) int i2;   // { dg-warning "label \[^\n\]* not used" }
13
}

powered by: WebSVN 2.1.0

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