aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/noncompile/incomplete-2.c
blob: 19864b9b35360b951c029dbd4d90712615a9097f (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 "has incomplete type" } */
  return 0;
}