2017-05-26 03:33:16 +08:00
|
|
|
// RUN: %clang %target_itanium_abi_host_triple %s -O -o %t.out -g
|
|
|
|
// RUN: %test_debuginfo %s %t.out
|
|
|
|
|
2017-09-01 02:16:55 +08:00
|
|
|
void __attribute__((noinline, optnone)) bar(int *test) {}
|
2017-05-26 03:33:16 +08:00
|
|
|
int main() {
|
|
|
|
int test;
|
|
|
|
test = 23;
|
|
|
|
// DEBUGGER: break 12
|
|
|
|
// DEBUGGER: r
|
|
|
|
// DEBUGGER: p test
|
2017-09-01 02:16:55 +08:00
|
|
|
// CHECK: = 23
|
2017-05-26 03:33:16 +08:00
|
|
|
bar(&test);
|
|
|
|
// DEBUGGER: break 17
|
|
|
|
// DEBUGGER: c
|
|
|
|
// DEBUGGER: p test
|
2017-09-01 02:16:55 +08:00
|
|
|
// CHECK: = 23
|
2017-05-26 03:33:16 +08:00
|
|
|
return test;
|
|
|
|
}
|