From de34cefa8366bff1405c738abc73b42639b838ad Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 11 Jul 2020 18:02:11 +0200 Subject: [PATCH] add test for detecting call to disable method --- tests/fail-no-oplist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/fail-no-oplist.c b/tests/fail-no-oplist.c index 538eed16..7c2c0aa7 100644 --- a/tests/fail-no-oplist.c +++ b/tests/fail-no-oplist.c @@ -40,8 +40,10 @@ void f(int x, int y) { #elif TEST == 2 +#define OP (SWAP(0)) + void f(int x, int y) { - M_CALL_SET(M_VALID_OPLIST(DEFAULT_OPLIST), x, y); + M_CALL_SWAP(OP, x, y); } #elif TEST == 3