Debian Codegraph @

testsuite/linux/ibt-3.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 /* { dg-xfail } */
3
4 /* Check why parenthesis are being output in the redeclaration. */
5
6 typedef unsigned int u32;
7
8 u32 crc32c(u32 crc, const void *address, unsigned int length);
9
10 int f(void)
11 {
12 u32 lcrc = 0;
13 void *addr = 0;
14 unsigned int len = 0;
15
16 (void)crc32c(lcrc, addr, len);
17 return 0;
18 }
19
20 /* { dg-final { scan-tree-dump "u32 klpe_crc32c" } } */
21 /* { dg-final { scan-tree-dump "KLP_RELOC_SYMBOL\(libcrc32c, libcrc32c, crc32c\)" } } */
22 /* { dg-final { scan-tree-dump-not "\(\*klpe_crc32c\)" } } */