annotate gcc/testsuite/gcc.dg/parm-impl-decl-3.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 /* Like parm-impl-decl-1.c, but with -g. PR 43381. */
kono
parents:
diff changeset
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
kono
parents:
diff changeset
3 /* { dg-do compile } */
kono
parents:
diff changeset
4 /* { dg-options "-g -std=gnu89" } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 int
kono
parents:
diff changeset
7 foo (int __attribute__ ((__mode__ (vector_size(8)))) i) /* { dg-warning "'mode' attribute ignored" } */
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 return (long long) i;
kono
parents:
diff changeset
10 }
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 int f (int [sizeof(g())]);
kono
parents:
diff changeset
13 int f1 (int [sizeof(g1())]);
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 int g () { return 1; }
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 int
kono
parents:
diff changeset
18 h (int (*p)[sizeof(i())])
kono
parents:
diff changeset
19 {
kono
parents:
diff changeset
20 int g2 (), g3 ();
kono
parents:
diff changeset
21 return (*p)[0] + g3() + g2();
kono
parents:
diff changeset
22 }
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 int i () { return 2; }
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 int f2 (int [sizeof(g2())]);
kono
parents:
diff changeset
27 int f3 (int [sizeof(g3())]);
kono
parents:
diff changeset
28 int g3 () { return 4; }