[llvm-commits] CVS: llvm/test/CFrontend/2007-02-16-VoidPtrDiff.c

Chris Lattner sabre at nondot.org
Fri Feb 16 17:44:38 PST 2007



Changes in directory llvm/test/CFrontend:

2007-02-16-VoidPtrDiff.c added (r1.1)
---
Log message:

new testcase


---
Diffs of the changes:  (+5 -0)

 2007-02-16-VoidPtrDiff.c |    5 +++++
 1 files changed, 5 insertions(+)


Index: llvm/test/CFrontend/2007-02-16-VoidPtrDiff.c
diff -c /dev/null llvm/test/CFrontend/2007-02-16-VoidPtrDiff.c:1.1
*** /dev/null	Fri Feb 16 19:44:31 2007
--- llvm/test/CFrontend/2007-02-16-VoidPtrDiff.c	Fri Feb 16 19:44:21 2007
***************
*** 0 ****
--- 1,5 ----
+ // RUN: %llvmgcc %s -S -o - -emit-llvm
+ 
+ void foo(void *ptr, int test) {
+   (ptr - ((void *) test + 0x2000));
+ }






More information about the llvm-commits mailing list