Update of /cvsroot/icomplete/icomplete/tests
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv19350/tests
Modified Files:
class_test.cpp inheritance.cpp
Log Message:
commit long pending changes and fix a segfault (by Johannes Winkelmann)
Index: inheritance.cpp
===================================================================
RCS file: /cvsroot/icomplete/icomplete/tests/inheritance.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** inheritance.cpp 20 Nov 2005 01:02:53 -0000 1.1
--- inheritance.cpp 4 Jul 2007 10:59:10 -0000 1.2
***************
*** 31,33 ****
--- 31,34 ----
{
Car *lamborghini = new Car();
+ lamborghini.
}
Index: class_test.cpp
===================================================================
RCS file: /cvsroot/icomplete/icomplete/tests/class_test.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** class_test.cpp 20 Nov 2005 01:02:53 -0000 1.1
--- class_test.cpp 4 Jul 2007 10:59:10 -0000 1.2
***************
*** 59,80 ****
- int main()
- {
- MyClass cl;
-
- F
-
-
-
-
-
-
int foo()
{
MyClass **cl;
int x;
cl = (MyClass**)calloc(10, sizeof(MyClass));
mystruct s;
! s.x;
fprintf (stderr, "DEBUG: %x\n", cl);
x = (*(cl)[2]).a;
--- 59,70 ----
int foo()
{
MyClass **cl;
+ cl.
int x;
cl = (MyClass**)calloc(10, sizeof(MyClass));
mystruct s;
! s.;
fprintf (stderr, "DEBUG: %x\n", cl);
x = (*(cl)[2]).a;
|