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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [c99-const-expr-4.c] - Diff between revs 154 and 816

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; }
 
 

powered by: WebSVN 2.1.0

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