summaryrefslogtreecommitdiffstats
path: root/Tests/COnly/conly.c
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-10-06 16:12:59 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-10-06 16:12:59 (GMT)
commit9ed93397fbe57a09e2a510b45331fa925a392bf8 (patch)
tree6e0960bd96eca344d168bd6c1444e968e24b73de /Tests/COnly/conly.c
parent1ba0a050395fda65718da8e62a896ea788dec8e4 (diff)
downloadCMake-9ed93397fbe57a09e2a510b45331fa925a392bf8.zip
CMake-9ed93397fbe57a09e2a510b45331fa925a392bf8.tar.gz
CMake-9ed93397fbe57a09e2a510b45331fa925a392bf8.tar.bz2
If you specify header file as source, it should still use C compiler and not CXX. Also fix COnly test so that it make sure that this still works...
Diffstat (limited to 'Tests/COnly/conly.c')
-rw-r--r--Tests/COnly/conly.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/COnly/conly.c b/Tests/COnly/conly.c
index 1482f27..3f720ef 100644
--- a/Tests/COnly/conly.c
+++ b/Tests/COnly/conly.c
@@ -1,4 +1,9 @@
+#include "foo.h"
+
+#include <stdio.h>
+
int main ()
{
+ printf("Foo: %s\n", foo);
return 0;
}