]> granicus.if.org Git - clang/blob - test/Sema/i-c-e2.c
Fix PR1992 by computing the right type for string literals, which
[clang] / test / Sema / i-c-e2.c
1 // RUN: clang %s -fsyntax-only -fpascal-strings
2
3 char array[1024/(sizeof (long))];
4
5 int x['\xBb' == (char) 187 ? 1: -1];
6
7 // PR1992
8 void func(int x)
9 {
10  switch (x) {
11  case sizeof("abc"): break;
12  case sizeof("loooong"): func(4);
13  case sizeof("\ploooong"): func(4);
14  }
15 }
16