Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr26427.c
blobadd13ca209e74bfd71deab0555f579ce4acd2955
1 /* { 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 */
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*);
12 int g(void) {
13 return f(&c, &b, &d, &c);
16 int f(const int *b, const struct a *c, const int *d, const int *e) {
17 return *b == *d;
20 int main(void) {
21 if (!g())
22 __builtin_abort();
23 return 0;