[llvm-commits] CVS: llvm-test/MultiSource/Benchmarks/Prolangs-C++/objects/Makefile objects.cpp onlyobj.h

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 4 19:58:09 PDT 2004



Changes in directory llvm-test/MultiSource/Benchmarks/Prolangs-C++/objects:

Makefile added (r1.1)
objects.cpp updated: 1.1 -> 1.2
onlyobj.h updated: 1.1 -> 1.2
---
Log message:

Compile


---
Diffs of the changes:  (+13 -14)

Index: llvm-test/MultiSource/Benchmarks/Prolangs-C++/objects/Makefile
diff -c /dev/null llvm-test/MultiSource/Benchmarks/Prolangs-C++/objects/Makefile:1.1
*** /dev/null	Mon Oct  4 21:58:08 2004
--- llvm-test/MultiSource/Benchmarks/Prolangs-C++/objects/Makefile	Mon Oct  4 21:57:58 2004
***************
*** 0 ****
--- 1,7 ----
+ LEVEL = ../../../..
+ 
+ PROG     = objects
+ LIBS  = -lstdc++
+ LDFLAGS = -lstdc++
+ include $(LEVEL)/MultiSource/Makefile.multisrc
+ 


Index: llvm-test/MultiSource/Benchmarks/Prolangs-C++/objects/objects.cpp
diff -u llvm-test/MultiSource/Benchmarks/Prolangs-C++/objects/objects.cpp:1.1 llvm-test/MultiSource/Benchmarks/Prolangs-C++/objects/objects.cpp:1.2
--- llvm-test/MultiSource/Benchmarks/Prolangs-C++/objects/objects.cpp:1.1	Mon Oct  4 15:01:14 2004
+++ llvm-test/MultiSource/Benchmarks/Prolangs-C++/objects/objects.cpp	Mon Oct  4 21:57:58 2004
@@ -4,11 +4,11 @@
 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 #include "onlyobj.h"
-int strlen(char *str1) {return 0;}
-int strcmp(char *str1, char *str2) {return 0;}
-char *strcpy(char *str1, char *str2) {return "";}
-char *strncpy(char *str1, char *str2, int i) {return "";}
-char *strcat(char *str1, char *str2) {return "";}
+static int strlen(char *str1) {return 0;}
+static int strcmp(char *str1, char *str2) {return 0;}
+static char *strcpy(char *str1, char *str2) {return "";}
+static char *strncpy(char *str1, char *str2, int i) {return "";}
+static char *strcat(char *str1, char *str2) {return "";}
 
 #include "artest.h"
 
@@ -261,7 +261,7 @@
 };
 
  
-main ()
+int main ()
 {
         A *a1 = new A(1);
         A *a2 = new A(2);


Index: llvm-test/MultiSource/Benchmarks/Prolangs-C++/objects/onlyobj.h
diff -u llvm-test/MultiSource/Benchmarks/Prolangs-C++/objects/onlyobj.h:1.1 llvm-test/MultiSource/Benchmarks/Prolangs-C++/objects/onlyobj.h:1.2
--- llvm-test/MultiSource/Benchmarks/Prolangs-C++/objects/onlyobj.h:1.1	Mon Oct  4 15:01:14 2004
+++ llvm-test/MultiSource/Benchmarks/Prolangs-C++/objects/onlyobj.h	Mon Oct  4 21:57:58 2004
@@ -5,14 +5,6 @@
 
 #ifndef __OBJ__
 
-extern "C" {
-int strlen(char *str1);
-int strcmp(char *str1, char *str2);
-char *strcpy(char *str1, char *str2);
-char *strncpy(char *str1, char *str2, int i);
-char *strcat(char *str1, char *str2);
-}
-
 class Object
 {
 	public :






More information about the llvm-commits mailing list