lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | #include <stdio.h> |
2 | |||||
3 | static int global_static = -1; | ||||
4 | |||||
5 | int static_test(void) | ||||
6 | { | ||||
7 | static int local_static = -2; | ||||
8 | |||||
9 | if (global_static != -1) | ||||
10 | printf("FAIL: global_static is not -1\n"); | ||||
11 | if (local_static != -2) | ||||
12 | printf("FAIL: local_static is not -2\n"); | ||||
13 | |||||
14 | return (global_static == -1 && local_static == -2); | ||||
15 | } |