URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* Test for constant expressions: const variable with value 0 is not a
|
/* Test for constant expressions: const variable with value 0 is not a
|
null pointer constant so the conditional expression should have
|
null pointer constant so the conditional expression should have
|
type void * and the assignment is OK. */
|
type void * and the assignment is OK. */
|
/* Origin: Joseph Myers <joseph@codesourcery.com> */
|
/* Origin: Joseph Myers <joseph@codesourcery.com> */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-std=iso9899:1999 -O2" } */
|
/* { dg-options "-std=iso9899:1999 -O2" } */
|
int *p;
|
int *p;
|
long *q;
|
long *q;
|
static void *const n = 0;
|
static void *const n = 0;
|
int j;
|
int j;
|
void f(void) { q = j ? p : n; }
|
void f(void) { q = j ? p : n; }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.