Home | History | Annotate | Download | only in host-tests
      1 // RUN: %clangxx %s -g -fexceptions %extra-clang-opts -o %t
      2 // RUN: %Test_jit_debuginfo %s %t
      3 // DEBUGGER: run
      4 // DEBUGGER: bt 2
      5 // CHECK: function_with_a_segfault
      6 // CHECK: main
      7 
      8 static int function_with_a_segfault() {
      9   int* bla = 0;
     10   *bla = 5;
     11   return 0;
     12 }
     13 
     14 int main() {
     15   return function_with_a_segfault();
     16 }
     17