diff mbox

[1/2] ret-void: add test case for toplevel asm

Message ID 20170608024736.49780-2-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show

Commit Message

Luc Van Oostenryck June 8, 2017, 2:47 a.m. UTC
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 mbox

Patch

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 .."
+ */