From b45a5d76058fbca6cd95aa259a700e1675e8de74 Mon Sep 17 00:00:00 2001 From: Bhargava Shastry Date: Tue, 15 Dec 2020 17:57:11 +0100 Subject: [PATCH] Asmanalysis: Add test case that demonstrates bug --- test/libyul/yulSyntaxTests/builtin_function_literal.yul | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/libyul/yulSyntaxTests/builtin_function_literal.yul diff --git a/test/libyul/yulSyntaxTests/builtin_function_literal.yul b/test/libyul/yulSyntaxTests/builtin_function_literal.yul new file mode 100644 index 000000000..81d2c1ed5 --- /dev/null +++ b/test/libyul/yulSyntaxTests/builtin_function_literal.yul @@ -0,0 +1,7 @@ +{ + datasize(x,1) +} +// ---- +// TypeError 7000: (4-12): Function expects 1 arguments but got 2. +// TypeError 9114: (4-12): Function expects direct literals as arguments. +// DeclarationError 8198: (13-14): Identifier not found.