Debian Codegraph @

gcc/testsuite/gcc.dg/tsan/pr111736.c

raw
1 /* PR sanitizer/111736 */
2 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
3 /* { dg-options "-fsanitize=thread -fdump-tree-optimized -ffat-lto-objects" } */
4 /* { dg-final { scan-tree-dump-not "__tsan_read" "optimized" } } */
5 /* { dg-final { scan-tree-dump-not "__tsan_write" "optimized" } } */
6
7 #ifdef __x86_64__
8 #define SEG __seg_fs
9 #else
10 #define SEG __seg_gs
11 #endif
12
13 void
14 foo (int SEG *p, int SEG *q)
15 {
16 *q = *p;
17 }