1 static const char messg
[] = "def";
3 static inline int add(int a
, int b
)
8 int foo(int a
, int b
) { return add(a
+ b
, 1); }
9 void bar(int a
, int b
) { add(a
+ b
, 1); }
12 static inline const char *lstrip(const char *str
)
17 const char *bas(void) { return lstrip("abc"); }
18 const char *qus(void) { return lstrip(messg
); }
21 * check-name: call-inlined
22 * check-command: test-linearize -Wno-decl -m64 $file
23 * check-assert: sizeof(void*) == 8
29 add.32 %r3 <- %arg1, %arg2
31 # call %r6 <- add, %r3, $1
38 # call %r13 <- add, %r10, $1
45 add.64 %r16 <- "abc", $1
46 # call %r17 <- lstrip, %r14
53 add.64 %r21 <- messg, $1
54 # call %r22 <- lstrip, %r19