aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/13 pch/cpp/prog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/13 pch/cpp/prog.cc')
-rw-r--r--meson/test cases/common/13 pch/cpp/prog.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/meson/test cases/common/13 pch/cpp/prog.cc b/meson/test cases/common/13 pch/cpp/prog.cc
new file mode 100644
index 000000000..0ba8519dc
--- /dev/null
+++ b/meson/test cases/common/13 pch/cpp/prog.cc
@@ -0,0 +1,11 @@
+// Note: if using PGI compilers, you will need to add #include "prog.hh"
+// even though you're using precompiled headers.
+void func(void) {
+ std::cout << "This is a function that fails to compile if iostream is not included."
+ << std::endl;
+}
+
+int main(void) {
+ func();
+ return 0;
+}