Changes in src/tests/init_once.c [6e4b913:72e9222]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/init_once.c
r6e4b913 r72e9222 92 92 init_once y = x; 93 93 94 void static_variable() { 95 static init_once x; 96 } 97 94 98 int main() { 95 99 // local variables … … 179 183 } 180 184 } 185 186 // function-scoped static variable 187 for (int i = 0; i < 10; i++) { 188 static_variable(); 189 } 181 190 } 182 191
Note:
See TracChangeset
for help on using the changeset viewer.