Debian Codegraph @

testsuite/includes/policy-compiler-1.c

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