Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- validation/linear/cast-volatile.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 validation/linear/cast-volatile.c diff --git a/validation/linear/cast-volatile.c b/validation/linear/cast-volatile.c new file mode 100644 index 000000000..f8a649372 --- /dev/null +++ b/validation/linear/cast-volatile.c @@ -0,0 +1,14 @@ +static int foo(volatile int *a, int v) +{ + *a = v; + return *a; +} + +/* + * check-name: cast-volatile + * check-command: test-linearize -fdump-ir=linearize $file + * + * check-known-to-fail + * check-output-ignore + * check-output-excludes: scast\\. + */ -- 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