summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/BUG23.c
blob: 1ff429ef0acf096ef69973c9689b0eb687dcca31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
main()
{
  static char static_char_array[1];
  static char *static_char_pointer;
  static char static_char;
  char  char_array[1];
  char *char_pointer;
  char  character;

  char *cp, c;

  c = cp - static_char_array;   /* error */
  c = cp - static_char_pointer;
  c = cp - &static_char;        /* error */
  c = cp - char_array;
  c = cp - char_pointer;
  c = cp - &character;
}