github.com/ice-blockchain/go/src@v0.0.0-20240403114104-1564d284e521/debug/dwarf/testdata/rnglistx.c (about)

     1  // clang -gdwarf-5 -O2 -nostdlib
     2  
     3  __attribute__((noinline, cold))
     4  static int sum(int i) {
     5    int j, s;
     6  
     7    s = 0;
     8    for (j = 0; j < i; j++) {
     9      s += j * i;
    10    }
    11    return s;
    12  }
    13  
    14  int main(int argc, char** argv) {
    15    if (argc == 0) {
    16      return 0;
    17    }
    18    return sum(argc);
    19  }