aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/noncompile/incomplete-2.c
blob: 0c707e3729af894d5e8c3a372740fd0b41ace1d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Origin: <steven@gcc.gnu.org>
   Make sure we do not ICE when the type in the function
   argument list is incomplete (Bug 10602).  */
/* { dg-options "-w" } */

int g95_type_for_mode (enum machine_mode);

int
g95_type_for_mode (enum machine_mode mode) /* { dg-error "incomplete type" } */
{
  return 0;
}