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@xxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html