[llvm-commits] [test-suite] r95358 - in /test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++: deriv1/student2.cpp deriv2/student3.cpp family/family.cpp garage/garage.cpp life/life.cpp
Anders Carlsson
andersca at mac.com
Thu Feb 4 20:26:32 PST 2010
Author: andersca
Date: Thu Feb 4 22:26:31 2010
New Revision: 95358
URL: http://llvm.org/viewvc/llvm-project?rev=95358&view=rev
Log:
Make the return type of main explicit so clang won't complain.
Modified:
test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/deriv1/student2.cpp
test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/deriv2/student3.cpp
test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/family/family.cpp
test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/garage/garage.cpp
test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/life/life.cpp
Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/deriv1/student2.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C%2B%2B/deriv1/student2.cpp?rev=95358&r1=95357&r2=95358&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/deriv1/student2.cpp (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/deriv1/student2.cpp Thu Feb 4 22:26:31 2010
@@ -67,7 +67,8 @@
return new quotient_expr(new sum_expr(new prod_expr(second, first->deriv(var)), new prod_expr(new const_expr(-1), new prod_expr(first, second->deriv(var)))), new prod_expr(second, second));
}
-main() {
+// LLVM: add main return type.
+int main() {
const_expr c(8);
var_expr x("x");
prod_expr simple(new const_expr(123.45), new var_expr("y"));
Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/deriv2/student3.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C%2B%2B/deriv2/student3.cpp?rev=95358&r1=95357&r2=95358&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/deriv2/student3.cpp (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/deriv2/student3.cpp Thu Feb 4 22:26:31 2010
@@ -168,7 +168,8 @@
}
}
-main() {
+// LLVM: add main return type.
+int main() {
const_expr c(8);
var_expr x("x");
prod_expr simple(new const_expr(123.45), new var_expr("y"));
Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/family/family.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C%2B%2B/family/family.cpp?rev=95358&r1=95357&r2=95358&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/family/family.cpp (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/family/family.cpp Thu Feb 4 22:26:31 2010
@@ -96,7 +96,8 @@
}
};
-main() {
+// LLVM: add main return type.
+int main() {
Parent p("Jones");
Child c("Jones", "Henry");
GrandChild g("Jones", "Cynthia", "Murray");
Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/garage/garage.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C%2B%2B/garage/garage.cpp?rev=95358&r1=95357&r2=95358&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/garage/garage.cpp (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/garage/garage.cpp Thu Feb 4 22:26:31 2010
@@ -96,7 +96,8 @@
Truck t4("PCS 909");
Truck t5("SLY 000");
-main () {
+// LLVM: add main return type.
+int main () {
Garage park(15);
Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/life/life.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C%2B%2B/life/life.cpp?rev=95358&r1=95357&r2=95358&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/life/life.cpp (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C++/life/life.cpp Thu Feb 4 22:26:31 2010
@@ -162,7 +162,8 @@
}
}
-main ()
+// LLVM: add main return type.
+int main ()
{
world odd, even;
int i;
More information about the llvm-commits
mailing list