[llvm-commits] CVS: llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/Makefile commission.h input.txt
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 4 17:58:01 PDT 2004
Changes in directory llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ:
Makefile updated: 1.1 -> 1.2
commission.h updated: 1.2 -> 1.3
input.txt updated: 1.1 -> 1.2
---
Log message:
Don't use unitiialized values
---
Diffs of the changes: (+9 -4)
Index: llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/Makefile
diff -u llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/Makefile:1.1 llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/Makefile:1.2
--- llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/Makefile:1.1 Mon Oct 4 19:47:49 2004
+++ llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/Makefile Mon Oct 4 19:57:47 2004
@@ -2,7 +2,7 @@
PROG = employ
LDFLAGS = -lstdc++
-RUN_OPTIONS = 40
+RUN_OPTIONS = 400
STDIN_FILENAME = input.txt
include $(LEVEL)/MultiSource/Makefile.multisrc
Index: llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/commission.h
diff -u llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/commission.h:1.2 llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/commission.h:1.3
--- llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/commission.h:1.2 Mon Oct 4 19:37:32 2004
+++ llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/commission.h Mon Oct 4 19:57:47 2004
@@ -17,10 +17,13 @@
** RCS :
**
** $Source: /home/vadve/shared/PublicCVS/llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/commission.h,v $
-** $Revision: 1.2 $
-** $Date: 2004/10/05 00:37:32 $
+** $Revision: 1.3 $
+** $Date: 2004/10/05 00:57:47 $
**
** $Log: commission.h,v $
+** Revision 1.3 2004/10/05 00:57:47 lattner
+** Don't use unitiialized values
+**
** Revision 1.2 2004/10/05 00:37:32 lattner
** Stop using deprecated headers
**
@@ -72,6 +75,7 @@
float startSalary, float startCommission)
: Employee(first, last) // this will call Employee's constructor
{
+ thisWeekSales = 0;
SetWeeklySalary(startSalary);
SetCommissionRate(startCommission);
dollarsToRaise = 10.0;
Index: llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/input.txt
diff -u llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/input.txt:1.1 llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/input.txt:1.2
--- llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/input.txt:1.1 Mon Oct 4 19:46:44 2004
+++ llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/input.txt Mon Oct 4 19:57:47 2004
@@ -1,3 +1,4 @@
1 bob jones 123.00
-2 john doe 1232.2
+2 john doe 1232.2 10.21
+0 jane green 1231.123
More information about the llvm-commits
mailing list