annotate gcc/testsuite/gcc.dg/pr26427.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-warning "this target does not support" "" {target *86*-*-darwin* } 0 } */
kono
parents:
diff changeset
2 /* { dg-do run { target { *-*-darwin* } } } */
kono
parents:
diff changeset
3 /* { dg-options { -fsection-anchors -O } } */
kono
parents:
diff changeset
4 /* PR target/26427 */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 struct a {};
kono
parents:
diff changeset
7 static const int d = 1;
kono
parents:
diff changeset
8 static const struct a b = {};
kono
parents:
diff changeset
9 static const int c = 1;
kono
parents:
diff changeset
10 int f(const int *, const struct a *, const int*, const int*);
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 int g(void) {
kono
parents:
diff changeset
13 return f(&c, &b, &d, &c);
kono
parents:
diff changeset
14 }
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 int f(const int *b, const struct a *c, const int *d, const int *e) {
kono
parents:
diff changeset
17 return *b == *d;
kono
parents:
diff changeset
18 }
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 int main(void) {
kono
parents:
diff changeset
21 if (!g())
kono
parents:
diff changeset
22 __builtin_abort();
kono
parents:
diff changeset
23 return 0;
kono
parents:
diff changeset
24 }