...

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

Documentation: debug/dwarf/testdata

     1// clang -gdwarf-5 -O2 -nostdlib
     2
     3__attribute__((noinline, cold))
     4static 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
    14int main(int argc, char** argv) {
    15  if (argc == 0) {
    16    return 0;
    17  }
    18  return sum(argc);
    19}

View as plain text