blob: 4937aa1d1d57ba9505c2ca00b009a67e619f8907 [file] [log] [blame]
Daniel Malea094881f2011-12-14 17:39:16 -05001// RUN: %clangxx %s -g -fexceptions %extra-clang-opts -o %t
2// RUN: %Test_jit_debuginfo %s %t
3// DEBUGGER: set verbose on
4// DEBUGGER: b __jit_debug_register_code
5// DEBUGGER: run
6// DEBUGGER: info sources
7// CHECK: test_info_sources.cpp
8// DEBUGGER: c
9
10
11static int function_with_a_segfault() {
12 int* bla = 0;
13 *bla = 5;
14 return 0;
15}
16
17static int some_function() {
18 return function_with_a_segfault();
19}
20
21static int foo() {
22 return some_function();
23}
24
25static int bar() {
26 return foo();
27}
28
29int main() {
30 return bar();
31}