Add testing for when C sources are compiled with C++ compiler

This commit is contained in:
Andy Cedilnik 2003-03-17 13:26:30 -05:00
parent 889a119474
commit e92c98f4b0
2 changed files with 12 additions and 1 deletions

View File

@ -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)

11
Tests/Simple/simpleCLib.c Normal file
View File

@ -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);
}
}