Improve test
This commit is contained in:
parent
e92c98f4b0
commit
72be68d0e0
@ -1,5 +1,6 @@
|
|||||||
# a simple test case
|
# a simple test case
|
||||||
PROJECT (simple)
|
PROJECT (simple)
|
||||||
ADD_EXECUTABLE (simple simple.cxx)
|
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)
|
TARGET_LINK_LIBRARIES(simple simpleLib)
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
extern void simpleLib();
|
extern void simpleLib();
|
||||||
|
extern "C" int FooBar();
|
||||||
|
extern int bar();
|
||||||
|
extern int bar1();
|
||||||
int main ()
|
int main ()
|
||||||
{
|
{
|
||||||
|
FooBar();
|
||||||
|
bar();
|
||||||
simpleLib();
|
simpleLib();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -8,4 +8,5 @@ int FooBar()
|
|||||||
{
|
{
|
||||||
printf("Count: %d/%d\n", class, private);
|
printf("Count: %d/%d\n", class, private);
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
16
Tests/Simple/simpleWe.cpp
Normal file
16
Tests/Simple/simpleWe.cpp
Normal 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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user