OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [20020122-1.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Copyright (C) 2002  Free Software Foundation.
2
   by Hans-Peter Nilsson  <hp@axis.com> */
3
 
4
/* { dg-do compile } */
5
 
6
typedef struct
7
 {
8
   unsigned short s;
9
 } t;
10
 
11
struct u
12
 {
13
   t v;
14
 };
15
 
16
int
17
foo (struct u *uu)
18
{
19
  int i = ((unsigned int) ((uu->v) & 42)); /* { dg-error "invalid operands to binary" } */
20
  return i;
21
}

powered by: WebSVN 2.1.0

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