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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [label-decl-1.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* Test diagnostics for label declarations.  Test with no special
2
   options.  */
3
/* Origin: Joseph Myers <joseph@codesourcery.com> */
4
/* { dg-do compile } */
5
/* { dg-options "" } */
6
 
7
typedef int b;
8
 
9
void
10
f (void)
11
{
12
  __label__ a, b, c, d;
13
  __extension__ (void)&&d; /* { dg-error "error: label 'd' used but not defined" } */
14
  goto c; /* { dg-error "error: label 'c' used but not defined" } */
15
 a: (void)0;
16
 b: (void)0;
17
}

powered by: WebSVN 2.1.0

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