2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / parm-impl-decl-3.c
blobb3941b92b6230fed41e458ac2ddb49d05032ed6f
1 /* Like parm-impl-decl-1.c, but with -g. PR 43381. */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do compile } */
4 /* { dg-options "-g" } */
6 int
7 foo (int __attribute__ ((__mode__ (vector_size(8)))) i) /* { dg-warning "'__mode__' attribute ignored" } */
9 return (long long) i;
12 int f (int [sizeof(g())]);
13 int f1 (int [sizeof(g1())]);
15 int g () { return 1; }
17 int
18 h (int (*p)[sizeof(i())])
20 int g2 (), g3 ();
21 return (*p)[0] + g3() + g2();
24 int i () { return 2; }
26 int f2 (int [sizeof(g2())]);
27 int f3 (int [sizeof(g3())]);
28 int g3 () { return 4; }