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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr30904.c] - Blame information for rev 754

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do link } */
2
/* { dg-options "-O2 -fdump-tree-optimized" } */
3
 
4
extern int t;
5
extern void link_error(void);
6
int main (void)
7
{
8
      struct { unsigned int a : 7; } s;
9
      s.a = t;
10
      if (s.a >> 8)
11
          link_error ();
12
      if (s.a >> 9)
13
          link_error ();
14
}
15
 
16
 
17
/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"  } } */
18
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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