Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/init_once.c

    r72e9222 r6e4b913  
    9292init_once y = x;
    9393
    94 void static_variable() {
    95         static init_once x;
    96 }
    97 
    9894int main() {
    9995        // local variables
     
    183179                }
    184180        }
    185 
    186         // function-scoped static variable
    187         for (int i = 0; i < 10; i++) {
    188                 static_variable();
    189         }
    190181}
    191182
Note: See TracChangeset for help on using the changeset viewer.