Debian Codegraph @

testsuite/includes/policy-compiler-1.c

raw ◀ ▶
1 Debian patch touch this file
1 /* { dg-options "-DCE_EXTRACT_FUNCTIONS=fn_c -DCE_NO_EXTERNALIZATION -DCE_KEEP_INCLUDES=compiler" }*/
•2 /* { dg-xfail } */
3
4 #include <stdio.h>
5 #include <stdatomic.h>
6 #include <pthread.h>
7
8 atomic_int cnt_atomic;
9
10 void* fn_c(void *thr_data) {
11 (void)thr_data;
12 for (int i = 0; i < 40000; i++) {
13 atomic_fetch_add(&cnt_atomic, 1);
14 }
15 return NULL;
16 }
17
18 /* { dg-final { scan-tree-dump-not "#include <stdio.h>" } } */
19 /* { dg-final { scan-tree-dump "#include <stdatomic.h>" } } */
20 /* { dg-final { scan-tree-dump "#include <stddef.h>" } } */