summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20010610-1.c
blob: ee8e2431bbb5e6604c60babd0ffa2e174a4843f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Origin: Kaveh R. Ghazi <ghazi@caip.rutgers.edu>

   Boolean types were not accepted as array sizes nor as switch
   quantities.  */

#include <stdbool.h>

int
main(void)
{
  bool arr[(bool)1];
  
  switch (arr[0])
    {
    default:;
    }

  return 0;
}