diff options
| -rw-r--r-- | expand.c | 2 | ||||
| -rw-r--r-- | validation/expand/function-pointer.c | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -821,6 +821,8 @@ static int expand_symbol_call(struct expression *expr, int cost) struct expression *fn = expr->fn; struct symbol *ctype = fn->ctype; + expand_expression(fn); + if (fn->type != EXPR_PREOP) return SIDE_EFFECTS; diff --git a/validation/expand/function-pointer.c b/validation/expand/function-pointer.c index 45aace16..706ef9a4 100644 --- a/validation/expand/function-pointer.c +++ b/validation/expand/function-pointer.c @@ -16,7 +16,6 @@ static void tst(struct s *s) /* * check-name: function-pointer * check-command: test-linearize -fdump-ir $file - * check-known-to-fail * * check-output-ignore * check-output-excludes: add\\.32.*\\$1, \\$0 |
