public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jiu Fu Guo <guojiufu@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/guojiufu/heads/personal-branch)] Temporarily remove an unintentionally commited test.
Date: Wed, 10 Jun 2020 03:42:46 +0000 (GMT)	[thread overview]
Message-ID: <20200610034246.15EF0388F04E@sourceware.org> (raw)

https://gcc.gnu.org/g:3a73a6adb605df1462be176442851b5a37839fc0

commit 3a73a6adb605df1462be176442851b5a37839fc0
Author: Martin Sebor <msebor@redhat.com>
Date:   Fri Jun 5 14:59:16 2020 -0600

    Temporarily remove an unintentionally commited test.
    
    gcc/testsuite/ChangeLog:
            * g++.dg/warn/Wnonnull5.C: Temporarily remove.

Diff:
---
 gcc/testsuite/g++.dg/warn/Wnonnull5.C | 108 ----------------------------------
 1 file changed, 108 deletions(-)

diff --git a/gcc/testsuite/g++.dg/warn/Wnonnull5.C b/gcc/testsuite/g++.dg/warn/Wnonnull5.C
deleted file mode 100644
index 8b25d2d9f86..00000000000
--- a/gcc/testsuite/g++.dg/warn/Wnonnull5.C
+++ /dev/null
@@ -1,108 +0,0 @@
-/* PR c++/86568 - -Wnonnull warnings should highlight the relevant argument
-   not the closing parenthesis.
-   { dg-do compile }
-   { dg-options "-O2 -Wall" } */
-
-#define NONNULL __attribute__ ((nonnull))
-
-#if __cplusplus < 201103L
-#  define nullptr __null
-#endif
-
-struct S
-{
-  void
-  f0 (const void*) const;         // { dg-message "in a call to non-static member function 'void S::f0\\(const void\\*\\) const'" }
-
-  void
-  f1 (const void*) const;         // { dg-message "in a call to non-static member function 'void S::f1\\(const void\\*\\) const'" }
-
-  void
-  f2 (const void*) const;         // { dg-message "in a call to non-static member function 'void S::f2\\(const void\\*\\) const'" }
-
-  NONNULL void
-  f3 (const void*, const void*);  // { dg-message "in a call to function 'void S::f3\\(const void\\*, const void\\*\\)' declared 'nonnull'" }
-
-  NONNULL void
-  f4 (const void*, const void*);  // { dg-message "in a call to function 'void S::f4\\(const void\\*, const void\\*\\)' declared 'nonnull'" }
-
-  NONNULL void
-  f5 (const void*, const void*);  // { dg-message "in a call to function 'void S::f5\\\(const void\\*, const void\\*\\)' declared 'nonnull'" }
-
-  NONNULL void
-  f6 (const void*, const void*);  // { dg-message "in a call to function 'void S::f6\\\(const void\\*, const void\\*\\)' declared 'nonnull'" }
-};
-
-void warn_nullptr_this ()
-{
-  ((S*)nullptr)->f0 ("");        // { dg-warning "3:'this' pointer null" "pr86568" { xfail *-*-* } }
-                                 // { dg-warning "this' pointer null" "pr86568" { target *-*-* } .-1 }
-}
-
-void warn_null_this_cst ()
-{
-  S* const null = 0;
-  null->f1 ("");                  // { dg-warning "3:'this' pointer null" }
-}
-
-void warn_null_this_var ()
-{
-  S* null = 0;
-  null->f2 (&null);               // { dg-warning "3:'this' pointer null" "pr86568" { xfail *-*-* } }
-                                  // { dg-warning "'this' pointer null" "pr86568" { target *-*-* } .-1 }
-}
-
-void warn_nullptr (S s)
-{
-  s.f3 (nullptr, &s);              // { dg-warning "9:argument 1 null where non-null expected" "pr86568" { xfail *-*-* } }
-                                   // { dg-warning "argument 1 null where non-null expected" "pr86568" { target *-*-* } .-1 }
-  s.f3 (&s, nullptr);              // { dg-warning "13:argument 2 null where non-null expected" "pr86568" { xfail *-*-* } }
-                                   // { dg-warning "argument 2 null where non-null expected" "pr86568" { target *-*-* } .-1 }
-}
-
-
-void warn_null_cst (S s)
-{
-  void* const null = 0;
-  s.f4 (null, &s);                 // { dg-warning "9:argument 1 null where non-null expected" }
-  s.f4 (&s, null);                 // { dg-warning "13:argument 2 null where non-null expected" }
-}
-
-void warn_null_var (S s)
-{
-  void* null = 0;
-  s.f5 (null, &s);                // { dg-warning "9:argument 1 null where non-null expected" "pr86568" { xfail *-*-* } }
-                                  // { dg-warning "argument 1 null where non-null expected" "pr86568" { target *-*-* } .-1 }
-  s.f5 (&s, null);                // { dg-warning "16:argument 2 null where non-null expected" "pr86568" { xfail *-*-* } }
-                                  // { dg-warning "argument 2 null where non-null expected" "pr86568" { target *-*-* } .-1 }
-}
-
-void warn_null_cond (S s, void *null)
-{
-  if (null)
-    return;
-
-  s.f6 (null, &s);                // { dg-warning "9:argument 1 null where non-null expected" "pr86568" { xfail *-*-* } }
-                                  // { dg-warning "argument 1 null where non-null expected" "pr86568" { target *-*-* } .-1 }
-  s.f6 (&s, null);                // { dg-warning "13:argument 2 null where non-null expected" "pr86568" { xfail *-*-* } }
-                                  // { dg-warning "argument 2 null where non-null expected" "pr86568" { target *-*-* } .-1 }
-}
-
-
-typedef NONNULL void Fvp (const void*, const void*);
-
-void warn_fptr_null_cst (Fvp *p)
-{
-  void* const null = 0;
-  p (null, "");                   // { dg-warning "6:argument 1 null where non-null expected" }
-  p ("", null);                   // { dg-warning "10:argument 2 null where non-null expected" }
-}
-
-typedef NONNULL void (S::*SMemFvp) (const void*, const void*);
-
-void warn_memfptr_null_cst (S *p, SMemFvp pmf)
-{
-  void* const null = 0;
-  (p->*pmf) (null, "");           // { dg-warning "14:argument 1 null where non-null expected" }
-  (p->*pmf) ("", null);           // { dg-warning "18:argument 2 null where non-null expected" }
-}


                 reply	other threads:[~2020-06-10  3:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200610034246.15EF0388F04E@sourceware.org \
    --to=guojiufu@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).