Debian Codegraph @

testsuite/includes/policy-system-1.c

raw
1 /* { dg-options "-DCE_EXTRACT_FUNCTIONS=fn_c -DCE_NO_EXTERNALIZATION -DCE_KEEP_INCLUDES=system" }*/
2
3 #include <stdio.h>
4 #include <stdatomic.h>
5 #include <pthread.h>
6 #include "header-1.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 "#include <stdio.h>" } } */
19 /* { dg-final { scan-tree-dump "#include <stdatomic.h>" } } */
20 /* { dg-final { scan-tree-dump "#include <pthread.h>" } } */
21 /* { dg-final { scan-tree-dump-not "#include \"header-1.h\"" } } */