LCOV - code coverage report
Current view: top level - subsys/cpp - cpp_init_array.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 5 5 100.0 %
Date: 2022-08-18 11:36:24 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 2 2 100.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * Copyright (c) 2015 Wind River Systems, Inc.
       3                 :            :  *
       4                 :            :  * SPDX-License-Identifier: Apache-2.0
       5                 :            :  */
       6                 :            : 
       7                 :            : /*
       8                 :            :  * @file
       9                 :            :  * @brief Execute initialization routines referenced in .init_array section
      10                 :            :  */
      11                 :            : 
      12                 :            : typedef void (*func_ptr)(void);
      13                 :            : 
      14                 :            : extern func_ptr __init_array_start[];
      15                 :            : extern func_ptr __init_array_end[];
      16                 :            : 
      17                 :            : /**
      18                 :            :  * @brief Execute initialization routines referenced in .init_array section
      19                 :            :  */
      20                 :          1 : void __do_init_array_aux(void)
      21                 :            : {
      22         [ +  + ]:        107 :         for (func_ptr *func = __init_array_start;
      23                 :            :                 func < __init_array_end;
      24                 :        106 :                 func++) {
      25                 :        106 :                 (*func)();
      26                 :            :         }
      27                 :          1 : }

Generated by: LCOV version 1.14