aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-declextract/testdata/functions.c.json
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2025-04-08 14:11:26 +0200
committerDmitry Vyukov <dvyukov@google.com>2025-04-09 10:27:41 +0000
commit1aed810c86069f8b9b117ccccf083e98bf0da74c (patch)
treee6841902edef7496b3813eea3e31c7c599625c62 /tools/syz-declextract/testdata/functions.c.json
parent6dfb898e263c6fdb948f1578b0dada1e15b6764e (diff)
tools/syz-declextract: extend test data
Add few interesting cases for scope analysis. Move functions related to resource to the header file, they must be visible in every file to work.
Diffstat (limited to 'tools/syz-declextract/testdata/functions.c.json')
-rw-r--r--tools/syz-declextract/testdata/functions.c.json9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/syz-declextract/testdata/functions.c.json b/tools/syz-declextract/testdata/functions.c.json
index ecb95affc..6d636233e 100644
--- a/tools/syz-declextract/testdata/functions.c.json
+++ b/tools/syz-declextract/testdata/functions.c.json
@@ -44,7 +44,8 @@
},
{
"name": "__fget_light",
- "file": "functions.c",
+ "file": "include/fs.h",
+ "is_static": true,
"scopes": [
{
"arg": -1
@@ -53,7 +54,8 @@
},
{
"name": "alloc_fd",
- "file": "functions.c",
+ "file": "include/fs.h",
+ "is_static": true,
"scopes": [
{
"arg": -1,
@@ -84,7 +86,8 @@
},
{
"name": "from_kuid",
- "file": "functions.c",
+ "file": "include/fs.h",
+ "is_static": true,
"scopes": [
{
"arg": -1,