aboutsummaryrefslogtreecommitdiff
path: root/test/inline-definition.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/inline-definition.c')
-rw-r--r--test/inline-definition.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/inline-definition.c b/test/inline-definition.c
new file mode 100644
index 0000000..224b14c
--- /dev/null
+++ b/test/inline-definition.c
@@ -0,0 +1,7 @@
+extern void f(void);
+
+/*
+f is not an inline definition, due to the preceeding declaration,
+so we *should* emit an external definition for it.
+*/
+inline void f(void) {}