Skip to content

Commit e818417

Browse files
Fix test failing if gcc is 7.5.0
We expect that `h` is not inlined anywhere, so make sure it isn't. Signed-off-by: Giuliano Belinassi <gbelinassi@suse.de>
1 parent 0f2b19f commit e818417

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

testsuite/inline/inlined-into-1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ static inline int g(void)
66
return 42;
77
}
88

9-
static __attribute__((noipa)) h(void)
9+
static __attribute__((noipa)) __attribute__((noinline)) h(void)
1010
{
1111
return g();
1212
}

testsuite/lib/libtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def run_inline_test(self, lto_test=False):
406406
return r
407407

408408
def check(self, tool, ce_output_path):
409-
self.log.print("terminal output of inline:")
409+
self.log.print("terminal output of " + os.path.basename(tool.args[0]) + ":")
410410
self.log.print(tool.stdout.decode())
411411

412412
should_xfail = self.extract_should_xfail()

0 commit comments

Comments
 (0)