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/] [pr26427.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-warning "this target does not support" } */
2
/* { dg-do run { target { *-*-darwin* } } } */
3
/* { dg-options { -fsection-anchors -O } } */
4
/* PR target/26427 */
5
 
6
struct a {};
7
static const int d = 1;
8
static const struct a b = {};
9
static const int c = 1;
10
int f(const int *, const struct a *, const int*, const int*);
11
 
12
int g(void) {
13
  return f(&c, &b, &d, &c);
14
}
15
 
16
int f(const int *b, const struct a *c, const int *d, const int *e) {
17
  return *b == *d;
18
}
19
 
20
int main(void) {
21
  if (!g())
22
    __builtin_abort();
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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