Improve test

This commit is contained in:
Andy Cedilnik 2003-03-17 14:29:22 -05:00
parent e92c98f4b0
commit 72be68d0e0
4 changed files with 24 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# a simple test case
PROJECT (simple)
ADD_EXECUTABLE (simple simple.cxx)
ADD_LIBRARY(simpleLib STATIC simpleLib.cxx simpleCLib.c)
ADD_LIBRARY(simpleLib STATIC
simpleLib.cxx simpleCLib.c simpleWe.cpp)
TARGET_LINK_LIBRARIES(simple simpleLib)

View File

@ -1,6 +1,11 @@
extern void simpleLib();
extern "C" int FooBar();
extern int bar();
extern int bar1();
int main ()
{
FooBar();
bar();
simpleLib();
return 0;
}

View File

@ -8,4 +8,5 @@ int FooBar()
{
printf("Count: %d/%d\n", class, private);
}
return 0;
}

16
Tests/Simple/simpleWe.cpp Normal file
View File

@ -0,0 +1,16 @@
#include <stdio.h>
class Foo
{
public:
Foo()
{
printf("This one has nonstandard extension\n");
}
};
int bar()
{
Foo f;
return 0;
}