summaryrefslogtreecommitdiffstats
path: root/Tests/PrecompiledHeader/foo1.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-02-08 21:18:21 (GMT)
committerBrad King <brad.king@kitware.com>2007-02-08 21:18:21 (GMT)
commit83466bf12eb2dfb51aa2ed49478e543db2530c97 (patch)
tree26abf7b787554937d175cedee5fb93041271504c /Tests/PrecompiledHeader/foo1.c
parent7fb573d437b300c15ee7d1fc6d1ef6fa077339e4 (diff)
downloadCMake-83466bf12eb2dfb51aa2ed49478e543db2530c97.zip
CMake-83466bf12eb2dfb51aa2ed49478e543db2530c97.tar.gz
CMake-83466bf12eb2dfb51aa2ed49478e543db2530c97.tar.bz2
ENH: Added PrecompiledHeader test for MSVC compilers.
Diffstat (limited to 'Tests/PrecompiledHeader/foo1.c')
-rw-r--r--Tests/PrecompiledHeader/foo1.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/PrecompiledHeader/foo1.c b/Tests/PrecompiledHeader/foo1.c
new file mode 100644
index 0000000..b10eba7
--- /dev/null
+++ b/Tests/PrecompiledHeader/foo1.c
@@ -0,0 +1,8 @@
+#ifndef foo_h
+# error "Precompiled header foo_precompiled.h has not been loaded."
+#endif
+
+int main()
+{
+ return foo();
+}