summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/nrvo-string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'debuginfo-tests/nrvo-string.cpp')
-rw-r--r--debuginfo-tests/nrvo-string.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/debuginfo-tests/nrvo-string.cpp b/debuginfo-tests/nrvo-string.cpp
index de89056fc84..ba8d9d42f6f 100644
--- a/debuginfo-tests/nrvo-string.cpp
+++ b/debuginfo-tests/nrvo-string.cpp
@@ -7,7 +7,8 @@
// RUN: %test_debuginfo %s %t.out
//
// PR34513
-void __attribute__((noinline)) stop() {}
+volatile int sideeffect = 0;
+void __attribute__((noinline)) stop() { sideeffect++; }
struct string {
string() {}
@@ -18,7 +19,7 @@ struct string {
string get_string() {
string unused;
string result = 3;
- // DEBUGGER: break 22
+ // DEBUGGER: break 23
stop();
return result;
}
@@ -34,7 +35,7 @@ string2 get_string2() {
some_function(result.i);
// Test that the debugger can get the value of result after another
// function is called.
- // DEBUGGER: break 38
+ // DEBUGGER: break 39
stop();
return result;
}
OpenPOWER on IntegriCloud