summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20000227-1.c
blob: 395a02c50c6e8df061337242efbc4247f955f5a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
static const unsigned char f[] = "\0\377";
static const unsigned char g[] = "\0ÿ";

int main(void)
{
  if (sizeof f != 3 || sizeof g != 3)
    abort ();
  if (f[0] != g[0])
    abort ();
  if (f[1] != g[1])
    abort ();
  if (f[2] != g[2])
    abort ();
  return 0;
}