summaryrefslogtreecommitdiffstats
path: root/test cases/common/13 pch/withIncludeFile/pch/prog.h
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/common/13 pch/withIncludeFile/pch/prog.h')
-rw-r--r--test cases/common/13 pch/withIncludeFile/pch/prog.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/test cases/common/13 pch/withIncludeFile/pch/prog.h b/test cases/common/13 pch/withIncludeFile/pch/prog.h
new file mode 100644
index 0000000..c89890a
--- /dev/null
+++ b/test cases/common/13 pch/withIncludeFile/pch/prog.h
@@ -0,0 +1,6 @@
+#ifndef PROG_H
+// Header guards for PCH confuse msvc in some situations.
+// Using them here makes sure we handle this correctly.
+#define PROG_H
+#include<stdio.h>
+#endif