[llvm-commits] CVS: llvm/test/CFrontend/2007-04-24-bit-not-expr.c 2007-04-24-str-const.c 2007-05-11-str-const.c 2007-04-24-bit-not-expr.ll 2007-04-24-str-const.ll 2007-05-11-str-const.ll
Chris Lattner
sabre at nondot.org
Fri Jun 8 23:11:09 PDT 2007
Changes in directory llvm/test/CFrontend:
2007-04-24-bit-not-expr.c added (r1.1)
2007-04-24-str-const.c added (r1.1)
2007-05-11-str-const.c added (r1.1)
2007-04-24-bit-not-expr.ll (r1.1) removed
2007-04-24-str-const.ll (r1.1) removed
2007-05-11-str-const.ll (r1.1) removed
---
Log message:
rename C files to end with .c
---
Diffs of the changes: (+29 -0)
2007-04-24-bit-not-expr.c | 7 +++++++
2007-04-24-str-const.c | 17 +++++++++++++++++
2007-05-11-str-const.c | 5 +++++
3 files changed, 29 insertions(+)
Index: llvm/test/CFrontend/2007-04-24-bit-not-expr.c
diff -c /dev/null llvm/test/CFrontend/2007-04-24-bit-not-expr.c:1.1
*** /dev/null Sat Jun 9 01:10:57 2007
--- llvm/test/CFrontend/2007-04-24-bit-not-expr.c Sat Jun 9 01:10:47 2007
***************
*** 0 ****
--- 1,7 ----
+ // PR 1346
+ // RUN: %llvmgcc -c %s -o /dev/null
+ extern bar(void *);
+
+ void f(void *cd) {
+ bar(((void *)((unsigned long)(cd) ^ -1)));
+ }
Index: llvm/test/CFrontend/2007-04-24-str-const.c
diff -c /dev/null llvm/test/CFrontend/2007-04-24-str-const.c:1.1
*** /dev/null Sat Jun 9 01:11:09 2007
--- llvm/test/CFrontend/2007-04-24-str-const.c Sat Jun 9 01:10:47 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++;
+ }
Index: llvm/test/CFrontend/2007-05-11-str-const.c
diff -c /dev/null llvm/test/CFrontend/2007-05-11-str-const.c:1.1
*** /dev/null Sat Jun 9 01:11:09 2007
--- llvm/test/CFrontend/2007-05-11-str-const.c Sat Jun 9 01:10:47 2007
***************
*** 0 ****
--- 1,5 ----
+ // RUN: %llvmgcc -c -g %s -o /dev/null
+
+ static unsigned char out[]={0,1};
+ static const unsigned char str1[]="1";
+
More information about the llvm-commits
mailing list