Add testing for when C sources are compiled with C++ compiler
This commit is contained in:
parent
889a119474
commit
e92c98f4b0
|
@ -1,5 +1,5 @@
|
|||
# a simple test case
|
||||
PROJECT (simple)
|
||||
ADD_EXECUTABLE (simple simple.cxx)
|
||||
ADD_LIBRARY(simpleLib STATIC simpleLib.cxx)
|
||||
ADD_LIBRARY(simpleLib STATIC simpleLib.cxx simpleCLib.c)
|
||||
TARGET_LINK_LIBRARIES(simple simpleLib)
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int FooBar()
|
||||
{
|
||||
int class;
|
||||
int private = 10;
|
||||
for ( class = 0; class < private; class ++ )
|
||||
{
|
||||
printf("Count: %d/%d\n", class, private);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue