xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2007-04-24-str-const.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
2*f4a2713aSLionel Sambuc static char *str;
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc static const struct {
5*f4a2713aSLionel Sambuc  const char *name;
6*f4a2713aSLionel Sambuc  unsigned type;
7*f4a2713aSLionel Sambuc } scan_special[] = {
8*f4a2713aSLionel Sambuc  {"shift", 1},
9*f4a2713aSLionel Sambuc  {0, 0}
10*f4a2713aSLionel Sambuc };
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc static void
sb(void)13*f4a2713aSLionel Sambuc sb(void)
14*f4a2713aSLionel Sambuc {
15*f4a2713aSLionel Sambuc  while (*str == ' ' || *str == '\t')
16*f4a2713aSLionel Sambuc   str++;
17*f4a2713aSLionel Sambuc }
18