summaryrefslogtreecommitdiffstats
path: root/Tests/ImportedSameName/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/ImportedSameName/main.c')
-rw-r--r--Tests/ImportedSameName/main.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/ImportedSameName/main.c b/Tests/ImportedSameName/main.c
new file mode 100644
index 0000000..a0cb27f
--- /dev/null
+++ b/Tests/ImportedSameName/main.c
@@ -0,0 +1,16 @@
+#ifndef DEF_A
+# error "DEF_A not defined"
+#endif
+#ifndef DEF_B
+# error "DEF_B not defined"
+#endif
+
+extern void a(void);
+extern void b(void);
+
+int main(void)
+{
+ a();
+ b();
+ return 0;
+}