1 /* PR target/96307 */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-fsanitize=kernel-address --param=asan-instrumentation-with-call-threshold=8" } */
4 /* { dg-skip-if "no address sanitizer" { no_fsanitize_address } } */
5
6 #include <limits.h>
7 enum a {test1, test2, test3=INT_MAX};
8 enum a a;
9 enum a *b;
10
11 void reset (void);
12
13 void
14 t()
15 {
16 if (a != test2)
17 __builtin_abort ();
18 if (*b != test2)
19 __builtin_abort ();
20 reset ();
21 if (a != test1)
22 __builtin_abort ();
23 if (*b != test1)
24 __builtin_abort ();
25 }