summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/pr42645-2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/other/pr42645-2.C')
-rw-r--r--gcc/testsuite/g++.dg/other/pr42645-2.C3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/other/pr42645-2.C b/gcc/testsuite/g++.dg/other/pr42645-2.C
index 67632e51d91..20cce80f217 100644
--- a/gcc/testsuite/g++.dg/other/pr42645-2.C
+++ b/gcc/testsuite/g++.dg/other/pr42645-2.C
@@ -8,7 +8,7 @@ struct C
C ();
};
-static inline C *foo () {}
+static inline C *foo () { return 0; }
extern void f4 ();
@@ -16,6 +16,7 @@ static inline int
f3 ()
{
f4 ();
+ return 0;
}
static inline void