[llvm-commits] [test-suite] r111503 - in /test-suite/trunk/SingleSource/UnitTests: 2002-05-02-ManyArguments.c 2002-05-02-ManyArguments.reference_output 2006-01-23-UnionInit.c 2006-01-23-UnionInit.reference_output
Daniel Dunbar
daniel at zuster.org
Wed Aug 18 18:29:19 PDT 2010
Author: ddunbar
Date: Wed Aug 18 20:29:19 2010
New Revision: 111503
URL: http://llvm.org/viewvc/llvm-project?rev=111503&view=rev
Log:
Avoid %p, which has non-predictable behavior for null values.
Modified:
test-suite/trunk/SingleSource/UnitTests/2002-05-02-ManyArguments.c
test-suite/trunk/SingleSource/UnitTests/2002-05-02-ManyArguments.reference_output
test-suite/trunk/SingleSource/UnitTests/2006-01-23-UnionInit.c
test-suite/trunk/SingleSource/UnitTests/2006-01-23-UnionInit.reference_output
Modified: test-suite/trunk/SingleSource/UnitTests/2002-05-02-ManyArguments.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/2002-05-02-ManyArguments.c?rev=111503&r1=111502&r2=111503&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/2002-05-02-ManyArguments.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/2002-05-02-ManyArguments.c Wed Aug 18 20:29:19 2010
@@ -3,7 +3,7 @@
void printfn(int a, short b, double C, float D, signed char E, char F, void *G, double *H, int I, long long J) {
printf("%d, %d, %f, %f, %d\n", a, b, C, D, E);
- printf("%d, 0x%p, 0x%p, %d, %lld\n", F, G, H, I, J);
+ printf("%d, %ld, %ld, %d, %lld\n", F, (long) G, (long) H, I, J);
}
int main() {
Modified: test-suite/trunk/SingleSource/UnitTests/2002-05-02-ManyArguments.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/2002-05-02-ManyArguments.reference_output?rev=111503&r1=111502&r2=111503&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/2002-05-02-ManyArguments.reference_output (original)
+++ test-suite/trunk/SingleSource/UnitTests/2002-05-02-ManyArguments.reference_output Wed Aug 18 20:29:19 2010
@@ -1,3 +1,3 @@
12, 2, 123.234000, 1231.123169, -12
-23, 0x0x1e240, 0x0x0, 1234567, 123124124124
+23, 123456, 0, 1234567, 123124124124
exit 0
Modified: test-suite/trunk/SingleSource/UnitTests/2006-01-23-UnionInit.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/2006-01-23-UnionInit.c?rev=111503&r1=111502&r2=111503&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/2006-01-23-UnionInit.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/2006-01-23-UnionInit.c Wed Aug 18 20:29:19 2010
@@ -150,7 +150,7 @@
hobbit2.values[1], hobbit2.values[2]);
printf("PR431: %d, %d, %d, %d\n", data.x, data.v[0],
data.v[1], data.v[2]);
- printf("PR654: %p, '%s'\n", s.inplace, s.chunk_data);
+ printf("PR654: %ld, '%s'\n", (long) s.inplace, s.chunk_data);
printf("PR323: %d, '%s'\n", ai.lsk.agid, ai.lsk.key);
lock = (spinlock_t) { .raw_lock = one_raw_spinlock() };
printf("PR627: %d\n", (int)sizeof(lock));
Modified: test-suite/trunk/SingleSource/UnitTests/2006-01-23-UnionInit.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/2006-01-23-UnionInit.reference_output?rev=111503&r1=111502&r2=111503&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/2006-01-23-UnionInit.reference_output (original)
+++ test-suite/trunk/SingleSource/UnitTests/2006-01-23-UnionInit.reference_output Wed Aug 18 20:29:19 2010
@@ -6,7 +6,7 @@
PR199: 5, 1, 2, 3
PR199: 5, 1, 2, 3
PR431: 0, 1, 2, 3
-PR654: 0x0, ' xyzkasjdlf '
+PR654: 0, ' xyzkasjdlf '
PR323: 3, 'foo'
returning raw_lock
PR627: 0
More information about the llvm-commits
mailing list