aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-06-08 01:33:45 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-06-08 02:30:30 +0200
commit999b976d2c1e6fa9e9c0236d7f2e23237d95864c (patch)
tree5e29d0e33ffb45fd60a0220a2fa634ecdae81f42 /validation
parent3d5f3e28e7fbdc9909b8b9c562080bd7577b6ff2 (diff)
downloadsparse-dev-999b976d2c1e6fa9e9c0236d7f2e23237d95864c.tar.gz
ret-void: add test case for toplevel asm
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>
Diffstat (limited to 'validation')
-rw-r--r--validation/asm-toplevel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/validation/asm-toplevel.c b/validation/asm-toplevel.c
new file mode 100644
index 00000000..8bdd7fc1
--- /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 .."
+ */