aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/13 pch/mixed/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/13 pch/mixed/main.cc')
-rw-r--r--meson/test cases/common/13 pch/mixed/main.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/meson/test cases/common/13 pch/mixed/main.cc b/meson/test cases/common/13 pch/mixed/main.cc
new file mode 100644
index 000000000..432120329
--- /dev/null
+++ b/meson/test cases/common/13 pch/mixed/main.cc
@@ -0,0 +1,10 @@
+extern "C" int cfunc();
+
+void func(void) {
+ std::cout << "This is a function that fails to compile if iostream is not included."
+ << std::endl;
+}
+
+int main(void) {
+ return cfunc();
+}