summaryrefslogtreecommitdiffstats
path: root/Tests/SetLang/stay_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/SetLang/stay_c.c')
-rw-r--r--Tests/SetLang/stay_c.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/SetLang/stay_c.c b/Tests/SetLang/stay_c.c
new file mode 100644
index 0000000..70755f3
--- /dev/null
+++ b/Tests/SetLang/stay_c.c
@@ -0,0 +1,8 @@
+#ifdef __cplusplus
+# error C source incorrectly compiled as C++
+#endif
+
+int stay_c(void)
+{
+ return 0;
+}