[DebugInfo] Prevent inlining in NRVO-string test cases

Since the new pass manager has been enabled by default these tests had their
-O1 variations failing due to the tested functions being inlined. This just
adds no_inline to the respective code similar to what we did in other
tests (e.g. aa56b30014d96700b2fc945be11866789f341d38 ).
This commit is contained in:
Raphael Isemann 2021-02-11 10:31:15 +01:00
parent 0b448854da
commit a874d182c6
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ struct string {
~string() {}
int i = 0;
};
string get_string() {
string __attribute__((noinline)) get_string() {
string unused;
string output = 3;
stop(); // DexLabel('string-nrvo')
@ -37,7 +37,7 @@ struct string2 {
string2(string2 &&other) { i = other.i; }
int i;
};
string2 get_string2() {
string2 __attribute__((noinline)) get_string2() {
string2 output;
output.i = 5;
some_function(output.i);

View File

@ -16,7 +16,7 @@ struct string {
~string() {}
int i = 0;
};
string get_string() {
string __attribute__((noinline)) get_string() {
string unused;
string result = 3;
// DEBUGGER: break 23
@ -29,7 +29,7 @@ struct string2 {
string2(string2 &&other) { i = other.i; }
int i;
};
string2 get_string2() {
string2 __attribute__((noinline)) get_string2() {
string2 result;
result.i = 5;
some_function(result.i);