[llvm-commits] CVS: llvm/test/CFrontend/2007-04-24-str-const.ll
    Devang Patel 
    dpatel at apple.com
       
    Tue Apr 24 14:06:10 PDT 2007
    
    
  
Changes in directory llvm/test/CFrontend:
2007-04-24-str-const.ll added (r1.1)
---
Log message:
New test.
---
Diffs of the changes:  (+17 -0)
 2007-04-24-str-const.ll |   17 +++++++++++++++++
 1 files changed, 17 insertions(+)
Index: llvm/test/CFrontend/2007-04-24-str-const.ll
diff -c /dev/null llvm/test/CFrontend/2007-04-24-str-const.ll:1.1
*** /dev/null	Tue Apr 24 16:06:02 2007
--- llvm/test/CFrontend/2007-04-24-str-const.ll	Tue Apr 24 16:05:52 2007
***************
*** 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++;
+ }
    
    
More information about the llvm-commits
mailing list