Debian Codegraph @

gcc/testsuite/g++.dg/asan/pr82792.C

raw
1 /* PR sanitizer/82792 */
2 /* { dg-do compile } */
3 /* { dg-options "-fsanitize=address" } */
4
5 extern int
6 test (int i, int j)
7 {
8 long c;
9 (c) = 1;
10 switch (i)
11 {
12 case 1:
13 if (j)
14 {
15 c = 1;
16 }
17 goto default_case;
18 case 2:
19 {
20 if (j)
21 {
22 c = 0;
23 }
24 }
25 __attribute ((fallthrough));
26 default_case:
27 default:
28 c = 0;
29 break;
30 }
31 return 0;
32 }