summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debuginfo-tests/nrvo-string.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/debuginfo-tests/nrvo-string.cpp b/debuginfo-tests/nrvo-string.cpp
index e27d4d31526..de89056fc84 100644
--- a/debuginfo-tests/nrvo-string.cpp
+++ b/debuginfo-tests/nrvo-string.cpp
@@ -7,6 +7,7 @@
// RUN: %test_debuginfo %s %t.out
//
// PR34513
+void __attribute__((noinline)) stop() {}
struct string {
string() {}
@@ -17,7 +18,8 @@ struct string {
string get_string() {
string unused;
string result = 3;
- // DEBUGGER: break 21
+ // DEBUGGER: break 22
+ stop();
return result;
}
void some_function(int) {}
@@ -32,7 +34,8 @@ string2 get_string2() {
some_function(result.i);
// Test that the debugger can get the value of result after another
// function is called.
- // DEBUGGER: break 35
+ // DEBUGGER: break 38
+ stop();
return result;
}
int main() {
OpenPOWER on IntegriCloud