From 93675f4cdd1c43dc27596f04233af091f81271f2 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 24 Apr 2007 21:05:52 +0000 Subject: [PATCH] New test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36401 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2007-04-24-str-const.ll | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/CFrontend/2007-04-24-str-const.ll 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 00000000000..4c109c41b01 --- /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++; +}