[llvm-commits] [poolalloc] r137450 - in /poolalloc/trunk/test/type_checks: correct/basic.c correct/basic_repeat.c correct/libclamav_snprintf.c correct/vprintf.c correct/vprintf1.c error/IntUnion.c error/alloc.c error/indirect_simple.c error/libclamav_snprintf1.c error/misalign.c error/misalign1.c error/testEndian.c
Will Dietz
wdietz2 at illinois.edu
Fri Aug 12 01:50:40 PDT 2011
Author: wdietz2
Date: Fri Aug 12 03:50:39 2011
New Revision: 137450
URL: http://llvm.org/viewvc/llvm-project?rev=137450&view=rev
Log:
Pull in r137266, r137268, and r137281 from release_27 branch.
Modified:
poolalloc/trunk/test/type_checks/correct/basic.c
poolalloc/trunk/test/type_checks/correct/basic_repeat.c
poolalloc/trunk/test/type_checks/correct/libclamav_snprintf.c
poolalloc/trunk/test/type_checks/correct/vprintf.c
poolalloc/trunk/test/type_checks/correct/vprintf1.c
poolalloc/trunk/test/type_checks/error/IntUnion.c
poolalloc/trunk/test/type_checks/error/alloc.c
poolalloc/trunk/test/type_checks/error/indirect_simple.c
poolalloc/trunk/test/type_checks/error/libclamav_snprintf1.c
poolalloc/trunk/test/type_checks/error/misalign.c
poolalloc/trunk/test/type_checks/error/misalign1.c
poolalloc/trunk/test/type_checks/error/testEndian.c
Modified: poolalloc/trunk/test/type_checks/correct/basic.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/type_checks/correct/basic.c?rev=137450&r1=137449&r2=137450&view=diff
==============================================================================
--- poolalloc/trunk/test/type_checks/correct/basic.c (original)
+++ poolalloc/trunk/test/type_checks/correct/basic.c Fri Aug 12 03:50:39 2011
@@ -4,7 +4,7 @@
* RUN: adsaopt -internalize -mem2reg -typechecks %t.bc -o %t.tc.bc
* RUN: tc-link %t.tc.bc -o %t.tc1.bc
* RUN: llc %t.tc1.bc -o %t.tc1.s
- * RUN: clang %t.tc1.s -o %t.tc2
+ * RUN: clang++ %t.tc1.s -o %t.tc2
* Execute
* RUN: %t.tc2 >& %t.tc.out
*/
Modified: poolalloc/trunk/test/type_checks/correct/basic_repeat.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/type_checks/correct/basic_repeat.c?rev=137450&r1=137449&r2=137450&view=diff
==============================================================================
--- poolalloc/trunk/test/type_checks/correct/basic_repeat.c (original)
+++ poolalloc/trunk/test/type_checks/correct/basic_repeat.c Fri Aug 12 03:50:39 2011
@@ -4,7 +4,7 @@
* RUN: adsaopt -internalize -mem2reg -typechecks %t.bc -o %t.tc.bc
* RUN: tc-link %t.tc.bc -o %t.tc1.bc
* RUN: llc %t.tc1.bc -o %t.tc1.s
- * RUN: clang %t.tc1.s -o %t.tc2
+ * RUN: clang++ %t.tc1.s -o %t.tc2
* Execute
* RUN: %t.tc2 >& %t.tc.out
*/
Modified: poolalloc/trunk/test/type_checks/correct/libclamav_snprintf.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/type_checks/correct/libclamav_snprintf.c?rev=137450&r1=137449&r2=137450&view=diff
==============================================================================
--- poolalloc/trunk/test/type_checks/correct/libclamav_snprintf.c (original)
+++ poolalloc/trunk/test/type_checks/correct/libclamav_snprintf.c Fri Aug 12 03:50:39 2011
@@ -5,7 +5,7 @@
* RUN: adsaopt -internalize -mem2reg -typechecks %t.bc -o %t.tc.bc
* RUN: tc-link %t.tc.bc -o %t.tc1.bc
* RUN: llc %t.tc1.bc -o %t.tc1.s
- * RUN: clang %t.tc1.s -o %t.tc2
+ * RUN: clang++ %t.tc1.s -o %t.tc2
* Execute
* RUN: %t.tc2 >& %t.tc.out
*/
Modified: poolalloc/trunk/test/type_checks/correct/vprintf.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/type_checks/correct/vprintf.c?rev=137450&r1=137449&r2=137450&view=diff
==============================================================================
--- poolalloc/trunk/test/type_checks/correct/vprintf.c (original)
+++ poolalloc/trunk/test/type_checks/correct/vprintf.c Fri Aug 12 03:50:39 2011
@@ -4,7 +4,7 @@
* RUN: adsaopt -internalize -mem2reg -typechecks %t.bc -o %t.tc.bc
* RUN: tc-link %t.tc.bc -o %t.tc1.bc
* RUN: llc %t.tc1.bc -o %t.tc1.s
- * RUN: clang %t.tc1.s -o %t.tc2
+ * RUN: clang++ %t.tc1.s -o %t.tc2
* Execute
* RUN: %t.tc2 >& %t.tc.out
*/
Modified: poolalloc/trunk/test/type_checks/correct/vprintf1.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/type_checks/correct/vprintf1.c?rev=137450&r1=137449&r2=137450&view=diff
==============================================================================
--- poolalloc/trunk/test/type_checks/correct/vprintf1.c (original)
+++ poolalloc/trunk/test/type_checks/correct/vprintf1.c Fri Aug 12 03:50:39 2011
@@ -4,7 +4,7 @@
* RUN: adsaopt -internalize -mem2reg -typechecks %t.bc -o %t.tc.bc
* RUN: tc-link %t.tc.bc -o %t.tc1.bc
* RUN: llc %t.tc1.bc -o %t.tc1.s
- * RUN: clang %t.tc1.s -o %t.tc2
+ * RUN: clang++ %t.tc1.s -o %t.tc2
* Execute
* RUN: %t.tc2 >& %t.tc.out
*/
Modified: poolalloc/trunk/test/type_checks/error/IntUnion.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/type_checks/error/IntUnion.c?rev=137450&r1=137449&r2=137450&view=diff
==============================================================================
--- poolalloc/trunk/test/type_checks/error/IntUnion.c (original)
+++ poolalloc/trunk/test/type_checks/error/IntUnion.c Fri Aug 12 03:50:39 2011
@@ -4,7 +4,7 @@
* RUN: adsaopt -internalize -mem2reg -typechecks %t.bc -o %t.tc.bc
* RUN: tc-link %t.tc.bc -o %t.tc1.bc
* RUN: llc %t.tc1.bc -o %t.tc1.s
- * RUN: clang %t.tc1.s -o %t.tc2
+ * RUN: clang++ %t.tc1.s -o %t.tc2
* Execute
* RUN: %t.tc2 >& %t.tc.out
* ;XFAIL:*
Modified: poolalloc/trunk/test/type_checks/error/alloc.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/type_checks/error/alloc.c?rev=137450&r1=137449&r2=137450&view=diff
==============================================================================
--- poolalloc/trunk/test/type_checks/error/alloc.c (original)
+++ poolalloc/trunk/test/type_checks/error/alloc.c Fri Aug 12 03:50:39 2011
@@ -4,7 +4,7 @@
* RUN: adsaopt -internalize -mem2reg -typechecks %t.bc -o %t.tc.bc
* RUN: tc-link %t.tc.bc -o %t.tc1.bc
* RUN: llc %t.tc1.bc -o %t.tc1.s
- * RUN: clang %t.tc1.s -o %t.tc2
+ * RUN: clang++ %t.tc1.s -o %t.tc2
* Execute
* RUN: %t.tc2 >& %t.tc.out
* ;XFAIL:*
@@ -38,4 +38,5 @@
pinloc[i][j] = 0;
}
+ return 0;
}
Modified: poolalloc/trunk/test/type_checks/error/indirect_simple.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/type_checks/error/indirect_simple.c?rev=137450&r1=137449&r2=137450&view=diff
==============================================================================
--- poolalloc/trunk/test/type_checks/error/indirect_simple.c (original)
+++ poolalloc/trunk/test/type_checks/error/indirect_simple.c Fri Aug 12 03:50:39 2011
@@ -4,7 +4,7 @@
* RUN: adsaopt -internalize -mem2reg -typechecks %t.bc -o %t.tc.bc
* RUN: tc-link %t.tc.bc -o %t.tc1.bc
* RUN: llc %t.tc1.bc -o %t.tc1.s
- * RUN: clang %t.tc1.s -o %t.tc2
+ * RUN: clang++ %t.tc1.s -o %t.tc2
* Execute
* RUN: %t.tc2 >& %t.tc.out
*/
@@ -28,4 +28,6 @@
double d = 5.0;
int *t = (*FP)(&d);
int v = *t;
+
+ return 0;
}
Modified: poolalloc/trunk/test/type_checks/error/libclamav_snprintf1.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/type_checks/error/libclamav_snprintf1.c?rev=137450&r1=137449&r2=137450&view=diff
==============================================================================
--- poolalloc/trunk/test/type_checks/error/libclamav_snprintf1.c (original)
+++ poolalloc/trunk/test/type_checks/error/libclamav_snprintf1.c Fri Aug 12 03:50:39 2011
@@ -5,7 +5,7 @@
* RUN: adsaopt -internalize -mem2reg -typechecks %t.bc -o %t.tc.bc
* RUN: tc-link %t.tc.bc -o %t.tc1.bc
* RUN: llc %t.tc1.bc -o %t.tc1.s
- * RUN: clang %t.tc1.s -o %t.tc2
+ * RUN: clang++ %t.tc1.s -o %t.tc2
* Execute
* RUN: %t.tc2 >& %t.tc.out
* ;XFAIL:*
@@ -13,6 +13,8 @@
#include <sys/types.h>
#include <stdarg.h>
+#include <stdio.h>
+#include <string.h>
static void
dopr(char *buffer, size_t maxlen, const char *format, va_list args);
@@ -529,6 +531,7 @@
return bytes;
}
-void main () {
+int main () {
mdprintf("%d %s %f", 5.0, "arushi", 4.0);
+ return 0;
}
Modified: poolalloc/trunk/test/type_checks/error/misalign.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/type_checks/error/misalign.c?rev=137450&r1=137449&r2=137450&view=diff
==============================================================================
--- poolalloc/trunk/test/type_checks/error/misalign.c (original)
+++ poolalloc/trunk/test/type_checks/error/misalign.c Fri Aug 12 03:50:39 2011
@@ -4,7 +4,7 @@
* RUN: adsaopt -internalize -mem2reg -typechecks %t.bc -o %t.tc.bc
* RUN: tc-link %t.tc.bc -o %t.tc1.bc
* RUN: llc %t.tc1.bc -o %t.tc1.s
- * RUN: clang %t.tc1.s -o %t.tc2
+ * RUN: clang++ %t.tc1.s -o %t.tc2
* Execute
* RUN: %t.tc2 >& %t.tc.out
* ;XFAIL:*
Modified: poolalloc/trunk/test/type_checks/error/misalign1.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/type_checks/error/misalign1.c?rev=137450&r1=137449&r2=137450&view=diff
==============================================================================
--- poolalloc/trunk/test/type_checks/error/misalign1.c (original)
+++ poolalloc/trunk/test/type_checks/error/misalign1.c Fri Aug 12 03:50:39 2011
@@ -4,7 +4,7 @@
* RUN: adsaopt -internalize -mem2reg -typechecks %t.bc -o %t.tc.bc
* RUN: tc-link %t.tc.bc -o %t.tc1.bc
* RUN: llc %t.tc1.bc -o %t.tc1.s
- * RUN: clang %t.tc1.s -o %t.tc2
+ * RUN: clang++ %t.tc1.s -o %t.tc2
* Execute
* RUN: %t.tc2 >& %t.tc.out
* ;XFAIL:*
Modified: poolalloc/trunk/test/type_checks/error/testEndian.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/type_checks/error/testEndian.c?rev=137450&r1=137449&r2=137450&view=diff
==============================================================================
--- poolalloc/trunk/test/type_checks/error/testEndian.c (original)
+++ poolalloc/trunk/test/type_checks/error/testEndian.c Fri Aug 12 03:50:39 2011
@@ -4,7 +4,7 @@
* RUN: adsaopt -internalize -mem2reg -typechecks %t.bc -o %t.tc.bc
* RUN: tc-link %t.tc.bc -o %t.tc1.bc
* RUN: llc %t.tc1.bc -o %t.tc1.s
- * RUN: clang %t.tc1.s -o %t.tc2
+ * RUN: clang++ %t.tc1.s -o %t.tc2
* Execute
* RUN: %t.tc2 >& %t.tc.out
* ;XFAIL:*
More information about the llvm-commits
mailing list