aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/extern-inline.c
diff options
Diffstat (limited to 'validation/extern-inline.c')
-rw-r--r--validation/extern-inline.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/validation/extern-inline.c b/validation/extern-inline.c
new file mode 100644
index 00000000..4f12ac06
--- /dev/null
+++ b/validation/extern-inline.c
@@ -0,0 +1,23 @@
+extern __inline__ int f(int);
+
+extern __inline__ int
+f(int x)
+{
+ return x;
+}
+
+extern int g(int);
+
+extern __inline__ int
+g(int x)
+{
+ return x;
+}
+
+
+/*
+ * check-name: extern inline function
+ * check-command: sparse $file $file
+ * check-description: Extern inline function never emits stand alone copy
+ * of the function. It allows multiple such definitions in different file.
+ */