From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
To: linux-sparse@vger.kernel.org
Cc: Chris Li <sparse@chrisli.org>,
Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Subject: [PATCH 1/2] ret-void: add test case for toplevel asm
Date: Thu, 8 Jun 2017 04:47:35 +0200 [thread overview]
Message-ID: <20170608024736.49780-2-luc.vanoostenryck@gmail.com> (raw)
In-Reply-To: <20170608024736.49780-1-luc.vanoostenryck@gmail.com>
Top-level asm is parsed as a fake anonymous function.
Obviously this fake function doesn't have a return type
and this create corner cases that need special handling.
For now, just add a test case with a top-leval asm to detect
possible problems in future code changes.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
validation/asm-toplevel.c | 7 +++++++
1 file changed, 7 insertions(+)
create mode 100644 validation/asm-toplevel.c
diff --git a/validation/asm-toplevel.c b/validation/asm-toplevel.c
new file mode 100644
index 000000000..8bdd7fc12
--- /dev/null
+++ b/validation/asm-toplevel.c
@@ -0,0 +1,7 @@
+__asm__("/* nothing */");
+/*
+ * check-name: asm-toplevel.c
+ * check-command: test-linearize $file
+ * check-output-ignore
+ * check-output-contains: asm *".. nothing .."
+ */
--
2.13.0
next prev parent reply other threads:[~2017-06-08 2:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-08 2:47 [PATCH 0/2] warn on implicit type Luc Van Oostenryck
2017-06-08 2:47 ` Luc Van Oostenryck [this message]
2017-06-08 2:47 ` [PATCH 2/2] ret-void: warn for " Luc Van Oostenryck
2017-06-08 6:16 ` [PATCH 0/2] warn on " Christopher Li
2017-06-08 7:25 ` Luc Van Oostenryck
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=20170608024736.49780-2-luc.vanoostenryck@gmail.com \
--to=luc.vanoostenryck@gmail.com \
--cc=linux-sparse@vger.kernel.org \
--cc=sparse@chrisli.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 NNTP newsgroup(s).