github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/tests/memory.c (about)

     1  #include "tests.h"
     2  #include <stdlib.h>
     3  
     4  void test_struct_pointer()
     5  {
     6      typedef struct row {
     7          double* t;
     8      } row;
     9      row r;
    10      unsigned poi = r.t;
    11      is_true(poi >= 0);
    12      (void)(r);
    13  }
    14  
    15  int main()
    16  {
    17      plan(1);
    18  
    19      test_struct_pointer();
    20  
    21      done_testing();
    22  }