diff options
author | Devang Patel <dpatel@apple.com> | 2007-04-24 21:05:52 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-04-24 21:05:52 +0000 |
commit | 93675f4cdd1c43dc27596f04233af091f81271f2 (patch) | |
tree | d9041c3c50be29f7ae6d7d2981b412f91d4fdbef /test | |
parent | d53b69d9c2dace1173f4ad50a242d6cfffcad403 (diff) | |
download | llvm-93675f4cdd1c43dc27596f04233af091f81271f2.tar.gz llvm-93675f4cdd1c43dc27596f04233af091f81271f2.tar.bz2 llvm-93675f4cdd1c43dc27596f04233af091f81271f2.tar.xz |
New test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CFrontend/2007-04-24-str-const.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CFrontend/2007-04-24-str-const.ll b/test/CFrontend/2007-04-24-str-const.ll new file mode 100644 index 0000000000..4c109c41b0 --- /dev/null +++ b/test/CFrontend/2007-04-24-str-const.ll @@ -0,0 +1,17 @@ +// RUN: %llvmgcc -c %s -o /dev/null +static char *str; + +static const struct { + const char *name; + unsigned type; +} scan_special[] = { + {"shift", 1}, + {0, 0} +}; + +static void +sb(void) +{ + while (*str == ' ' || *str == '\t') + str++; +} |