summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/PrecompileHeaders/use_pch.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/PrecompileHeaders/use_pch.cxx')
-rw-r--r--Tests/RunCMake/PrecompileHeaders/use_pch.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/PrecompileHeaders/use_pch.cxx b/Tests/RunCMake/PrecompileHeaders/use_pch.cxx
new file mode 100644
index 0000000..caf115b
--- /dev/null
+++ b/Tests/RunCMake/PrecompileHeaders/use_pch.cxx
@@ -0,0 +1,9 @@
+#include "cxx_pch.h"
+#ifndef CXX_PCH
+# error "CXX PCH not included in CXX source."
+#endif
+extern "C" int no_pch(void);
+int main()
+{
+ return no_pch();
+}