Add the testcase before doing the simplification. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- validation/optim/trunc-trunc.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 validation/optim/trunc-trunc.c diff --git a/validation/optim/trunc-trunc.c b/validation/optim/trunc-trunc.c new file mode 100644 index 000000000..c01d81f67 --- /dev/null +++ b/validation/optim/trunc-trunc.c @@ -0,0 +1,13 @@ +char foo(int a) +{ + return ((((short) a) + 1) - 1); +} + +/* + * check-name: trunc-trunc + * check-command: test-linearize -Wno-decl $file + * check-known-to-fail + * + * check-output-ignore + * check-output-pattern(1): trunc\\. + */ -- 2.18.0