Debian Codegraph @

testsuite/linux/ibt-2.c

raw
1 /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_SYMVERS_PATH=../testsuite/linux/Modules.symvers -DCE_RENAME_SYMBOLS -nostdinc -I../testsuite/linux -DKBUILD_MODNAME=libcrc32c -D__USE_IBT__ -D__KERNEL__ -DCE_KEEP_INCLUDES" } */
2
3 typedef unsigned int u32;
4
5 u32 crc32c(u32 crc, const void *address, unsigned int length);
6
7 int f(void)
8 {
9 u32 lcrc = 0;
10 void *addr = 0;
11 unsigned int len = 0;
12
13 (void)crc32c(lcrc, addr, len);
14 return 0;
15 }
16
17 /* { dg-final { scan-tree-dump "u32 crc32c\(" } } */
18 /* { dg-final { scan-tree-dump "KLP_RELOC_SYMBOL\(libcrc32c, libcrc32c, crc32c\)" } } */
19 /* { dg-final { scan-tree-dump-not "\(\*klpe_crc32c\)" } } */