[llvm-commits] [poolalloc] r157811 - /poolalloc/trunk/test/dsa/var_arg/print.c
Will Dietz
wdietz2 at illinois.edu
Fri Jun 1 06:48:01 PDT 2012
Author: wdietz2
Date: Fri Jun 1 08:48:01 2012
New Revision: 157811
URL: http://llvm.org/viewvc/llvm-project?rev=157811&view=rev
Log:
Drop "var_arg/print.c" lit test, due to lack of utility and issues with a user.
Removed:
poolalloc/trunk/test/dsa/var_arg/print.c
Removed: poolalloc/trunk/test/dsa/var_arg/print.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/dsa/var_arg/print.c?rev=157810&view=auto
==============================================================================
--- poolalloc/trunk/test/dsa/var_arg/print.c (original)
+++ poolalloc/trunk/test/dsa/var_arg/print.c (removed)
@@ -1,32 +0,0 @@
-//TODO: Update this to not use ds-aa!
-//XFAIL: *
-#include <stdarg.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-//--build the code into a .bc
-//RUN: clang -O0 %s -S -emit-llvm -o - | llvm-as > %t.bc
-//--check if ds-aa breaks, breaks opts, or results in miscompiled code
-//RUN: lli %t.bc > %t.refout
-//RUN: dsaopt %t.bc -ds-aa -O3 -o - | lli > %t.out
-// (Don't diff the results; this code prints a pointer which is silly to diff)
-//RUNNO: diff %t.refout %t.out
-
-void generic_sendmsg (const char *fmt, ...)
-{
- va_list ap;
- printf( "@");
- va_start(ap, fmt);
- vprintf( fmt, ap);
- va_end(ap);
- printf("\n");
-}
-
-int main() {
- int *x = malloc(sizeof(int));
- generic_sendmsg("F %li %li %3.2f %3.2f", 1234, 1234,123.22, 123.45);
- generic_sendmsg("%s ID3:%s%s", "TEST", "AAA" , "Unknown");
- generic_sendmsg("%s ID3:%s%s %p", "TEST", "AAA" , "Unknown", x);
-
- return 0;
-}
More information about the llvm-commits
mailing list