aboutsummaryrefslogtreecommitdiff
path: root/tests/include
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2020-04-20 12:28:14 -0500
committerGanesh Viswanathan <dev@genotrance.com>2020-04-20 12:28:14 -0500
commitab0439e60eab40a4e21d95261a8699690984b6a2 (patch)
treeea7ea1bb6b68888f9e584c45bd3e406e9b757496 /tests/include
parent485c2f1ab2436094c28eabd97a3a1c02abcddf82 (diff)
downloadnimterop-ab0439e60eab40a4e21d95261a8699690984b6a2.tar.gz
nimterop-ab0439e60eab40a4e21d95261a8699690984b6a2.zip
ast2 static inline with -H, fix #188, --replace support
Diffstat (limited to 'tests/include')
-rw-r--r--tests/include/tast2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/include/tast2.h b/tests/include/tast2.h
index 1c1e935..bdf8823 100644
--- a/tests/include/tast2.h
+++ b/tests/include/tast2.h
@@ -198,6 +198,10 @@ typedef struct {
enum { NEV6 = 8 * 8, NEV7 } f8;
} nested;
+static inline int sitest1(int f1) {
+ return f1 * 2;
+}
+
// DUPLICATES
@@ -390,6 +394,10 @@ typedef struct {
enum { NEV6 = 8 * 8, NEV7 } f8;
} nested;
+static inline int sitest1(int f1) {
+ return f1 * 2;
+}
+
#endif