introduce: smatch_data/kernel.no_inline_functions
[smatch.git] / validation / sm_strlen3.c
blobb147c1a7c3244874cdc3ad714c46b618b098501c
1 #include "check_debug.h"
3 int strlen(const char *str);
4 int strnlen(const char *str, int limit);
6 int func(void)
8 __smatch_implied(strlen("foo"));
9 __smatch_implied(strnlen("foo", 2));
13 * check-name: Smatch strlen test #3
14 * check-command: smatch -I.. sm_strlen3.c
16 * check-output-start
17 sm_strlen3.c:8 func() implied: strlen("foo") = '3'
18 sm_strlen3.c:9 func() implied: strnlen("foo", 2) = '2'
19 * check-output-end