Debian Codegraph @

testsuite/small/closure-6.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 ext2fs_nls_table;
6
7 struct struct_ext2_filsys {
8 const struct ext2fs_nls_table *encoding;
9 };
10
11 extern const struct ext2fs_nls_table *ext2fs_load_nls_table(int encoding);
12 extern int ext2fs_casefold_cmp(const struct ext2fs_nls_table *table,
13 const unsigned char *str1, size_t len1,
14 const unsigned char *str2, size_t len2);
15
16 struct ext2fs_nls_table {
17 int version;
18 const struct ext2fs_nls_ops *ops;
19 };
20
21 int ext2fs_casefold_cmp(const struct ext2fs_nls_table *table,
22 const unsigned char *str1, size_t len1,
23 const unsigned char *str2, size_t len2)
24 {
25 (void) *table;
26 return 0;
27 }
28
29 /* { dg-final { scan-tree-dump-not "struct struct_ext2_filsys {" } } */