aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-07-17 20:11:11 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-07-17 20:11:11 +0000
commit5a9aa64a146bef6b48a2c3795c430ed671902aff (patch)
treeb5de4bbac4189b0d537038d02cd1d03faca9b518
parent12f5646189815f0c7c3f9ac02430928c7f9e862c (diff)
Update this test to show the output of the thing it is testing.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@39981 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--SingleSource/UnitTests/Integer/integer_all_onesp.c8
-rw-r--r--SingleSource/UnitTests/Integer/integer_all_onesp.reference_output3
2 files changed, 8 insertions, 3 deletions
diff --git a/SingleSource/UnitTests/Integer/integer_all_onesp.c b/SingleSource/UnitTests/Integer/integer_all_onesp.c
index 10a37384..3033f543 100644
--- a/SingleSource/UnitTests/Integer/integer_all_onesp.c
+++ b/SingleSource/UnitTests/Integer/integer_all_onesp.c
@@ -3,7 +3,11 @@
int main(int argc, char **argv) {
typedef uint256 BitType;
- BitType X = rand() % bitwidthof(BitType);
+ BitType X = -1;
- return 0;
+ printf("uint256 X = -1 -> ");
+ printBits(X);
+ printf("\n");
+
+ return (int) X;
}
diff --git a/SingleSource/UnitTests/Integer/integer_all_onesp.reference_output b/SingleSource/UnitTests/Integer/integer_all_onesp.reference_output
index ca916d09..0b3cc14a 100644
--- a/SingleSource/UnitTests/Integer/integer_all_onesp.reference_output
+++ b/SingleSource/UnitTests/Integer/integer_all_onesp.reference_output
@@ -1 +1,2 @@
-exit 0
+uint256 X = -1 -> 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
+exit 255