summaryrefslogtreecommitdiffstats
path: root/Tests/PrecompiledHeader/foo2.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/foo2.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/foo2.c')
-rw-r--r--Tests/PrecompiledHeader/foo2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/PrecompiledHeader/foo2.c b/Tests/PrecompiledHeader/foo2.c
new file mode 100644
index 0000000..2845cdb
--- /dev/null
+++ b/Tests/PrecompiledHeader/foo2.c
@@ -0,0 +1,9 @@
+#ifndef foo_h
+# include "foo.h"
+# error "Precompiled header foo_precompiled.h has not been loaded."
+#endif
+
+int foo()
+{
+ return 0;
+}