diff --git a/debuginfo-tests/nrvo-string.cpp b/debuginfo-tests/nrvo-string.cpp index e27d4d315267..de89056fc846 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() {