[llvm-commits] [llvm] r41979 - /llvm/trunk/test/CFrontend/2007-09-14-NegatePointer.c

Chris Lattner sabre at nondot.org
Fri Sep 14 22:46:42 PDT 2007


Author: lattner
Date: Sat Sep 15 00:46:41 2007
New Revision: 41979

URL: http://llvm.org/viewvc/llvm-project?rev=41979&view=rev
Log:
New testcase for PR1662.  GCC trees are horrible :(

Added:
    llvm/trunk/test/CFrontend/2007-09-14-NegatePointer.c

Added: llvm/trunk/test/CFrontend/2007-09-14-NegatePointer.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2007-09-14-NegatePointer.c?rev=41979&view=auto

==============================================================================
--- llvm/trunk/test/CFrontend/2007-09-14-NegatePointer.c (added)
+++ llvm/trunk/test/CFrontend/2007-09-14-NegatePointer.c Sat Sep 15 00:46:41 2007
@@ -0,0 +1,7 @@
+// RUN: %llvmgcc -S %s -o - 
+// PR1662
+
+int foo(unsigned char *test) {
+  return 0U - (unsigned int )test;
+}
+





More information about the llvm-commits mailing list