Debian Codegraph @

gcc/testsuite/c-c++-common/analyzer/strlen-pr112811.c

raw
1 struct foo_laptop_debug {
2 struct dentry *root;
3 unsigned long size;
4 };
5 struct foo_laptop {
6 void *placeholder;
7 struct foo_laptop_debug debug;
8 char sdiag[64];
9 };
10
11 extern struct dentry *debugfs_create_dir(void);
12
13 void foo_debugfs_init(struct foo_laptop *foo) {
14 struct dentry *root;
15 root = debugfs_create_dir();
16 foo->debug.root = root;
17 foo->debug.size = __builtin_strlen(foo->sdiag);
18 }