Debian Codegraph @

testsuite/small/closure-5.c

raw
1 /* { dg-options "-DCE_EXTRACT_FUNCTIONS=ext2fs_casefold_cmp -DCE_NO_EXTERNALIZATION" }*/
2
3 typedef long unsigned int size_t;
4
5 struct struct_ext2_filsys {
6 const struct ext2fs_nls_table *encoding;
7 };
8
9 extern const struct ext2fs_nls_table *ext2fs_load_nls_table(int encoding);
10 extern int ext2fs_casefold_cmp(const struct ext2fs_nls_table *table,
11 const unsigned char *str1, size_t len1,
12 const unsigned char *str2, size_t len2);
13
14 struct ext2fs_nls_table {
15 int version;
16 const struct ext2fs_nls_ops *ops;
17 };
18
19 int ext2fs_casefold_cmp(const struct ext2fs_nls_table *table,
20 const unsigned char *str1, size_t len1,
21 const unsigned char *str2, size_t len2)
22 {
23 (void) *table;
24 return 0;
25 }
26
27 /* { dg-final { scan-tree-dump "struct struct_ext2_filsys {\n *const struct ext2fs_nls_table \*encoding;\n};" } } */