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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-warning "this target does not support" "" {target *86*-*-darwin* } 0 } */
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.