From e92c98f4b014cec2ecd355d04dd34e88200c4676 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Mon, 17 Mar 2003 13:26:30 -0500 Subject: Add testing for when C sources are compiled with C++ compiler --- Tests/Simple/CMakeLists.txt | 2 +- Tests/Simple/simpleCLib.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Tests/Simple/simpleCLib.c diff --git a/Tests/Simple/CMakeLists.txt b/Tests/Simple/CMakeLists.txt index d42728d..07a9039 100644 --- a/Tests/Simple/CMakeLists.txt +++ b/Tests/Simple/CMakeLists.txt @@ -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) diff --git a/Tests/Simple/simpleCLib.c b/Tests/Simple/simpleCLib.c new file mode 100644 index 0000000..f1c5ac2 --- /dev/null +++ b/Tests/Simple/simpleCLib.c @@ -0,0 +1,11 @@ +#include + +int FooBar() +{ + int class; + int private = 10; + for ( class = 0; class < private; class ++ ) + { + printf("Count: %d/%d\n", class, private); + } +} -- cgit v0.12