Reported-by: Jason A. Donenfeld <Jason@xxxxxxxxx> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- validation/include-eval.c | 7 +++++++ validation/include-eval.inc | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 validation/include-eval.c create mode 100644 validation/include-eval.inc diff --git a/validation/include-eval.c b/validation/include-eval.c new file mode 100644 index 000000000..bf9bf63fe --- /dev/null +++ b/validation/include-eval.c @@ -0,0 +1,7 @@ +/* nothing */ + +/* + * check-name: include-eval.c + * check-command: sparse -include ./include-eval.inc $file + * check-known-to-fail + */ diff --git a/validation/include-eval.inc b/validation/include-eval.inc new file mode 100644 index 000000000..e2561ca41 --- /dev/null +++ b/validation/include-eval.inc @@ -0,0 +1,12 @@ +typedef unsigned long long_t; + +inline +static unsigned int ok(void) +{ + return sizeof(long_t); +} + +static unsigned int ko(void) +{ + return sizeof(long_t); +} -- 2.14.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