Debian Codegraph @

gcc/testsuite/gcc.dg/asan/pr114956.c

raw
1 /* PR sanitizer/114956 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fsanitize=address,null" } */
4
5 int **a;
6 void qux (int *);
7
8 __attribute__((always_inline)) static inline int *
9 foo (void)
10 {
11 int b[1];
12 qux (b);
13 return a[1];
14 }
15
16 __attribute__((no_sanitize_address)) void
17 bar (void)
18 {
19 *a = foo ();
20 }
21
22 void
23 baz (void)
24 {
25 bar ();
26 }