diff mbox series

fixed testcase fail in pr102892-2.c fixed tesccase fail in gcc.dg/pr102892-1.c

Message ID 20211230053817.1036-1-shihua@iscas.ac.cn
State New
Headers show
Series fixed testcase fail in pr102892-2.c fixed tesccase fail in gcc.dg/pr102892-1.c | expand

Commit Message

廖仕华 Dec. 30, 2021, 5:38 a.m. UTC
From: LiaoShihua <shihua@iscas.ac.cn>

        * gcc.dg/pr102892-2.c: Add definition of function foo() which declared in pr102892-1.c
---
 gcc/testsuite/gcc.dg/pr102892-2.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Andrew Pinski Dec. 30, 2021, 5:42 a.m. UTC | #1
On Wed, Dec 29, 2021 at 9:39 PM <shihua@iscas.ac.cn> wrote:
>
> From: LiaoShihua <shihua@iscas.ac.cn>
>
>         * gcc.dg/pr102892-2.c: Add definition of function foo() which declared in pr102892-1.c

This patch is wrong. The testcase is testing to make sure foo was
optimized out. If it is failing for you can you file a bug with the
specific target and log for that testcase?

Thanks,
Andrew Pinski

> ---
>  gcc/testsuite/gcc.dg/pr102892-2.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/gcc/testsuite/gcc.dg/pr102892-2.c b/gcc/testsuite/gcc.dg/pr102892-2.c
> index b39bd6c97b3..b179b26680c 100644
> --- a/gcc/testsuite/gcc.dg/pr102892-2.c
> +++ b/gcc/testsuite/gcc.dg/pr102892-2.c
> @@ -5,3 +5,8 @@ void
>  bar (void)
>  {
>  }
> +
> +void
> +foo (void)
> +{
> +}
> \ No newline at end of file
> --
> 2.31.1.windows.1
>
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/pr102892-2.c b/gcc/testsuite/gcc.dg/pr102892-2.c
index b39bd6c97b3..b179b26680c 100644
--- a/gcc/testsuite/gcc.dg/pr102892-2.c
+++ b/gcc/testsuite/gcc.dg/pr102892-2.c
@@ -5,3 +5,8 @@  void
 bar (void)
 {
 }
+
+void 
+foo (void)
+{
+}
\ No newline at end of file