Text file src/debug/dwarf/testdata/rnglistx.c

     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  }
    20  

View as plain text