aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/fallback/pure_modifier.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/fallback/pure_modifier.sol')
-rw-r--r--test/libsolidity/syntaxTests/fallback/pure_modifier.sol6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/fallback/pure_modifier.sol b/test/libsolidity/syntaxTests/fallback/pure_modifier.sol
new file mode 100644
index 00000000..20d5b0ac
--- /dev/null
+++ b/test/libsolidity/syntaxTests/fallback/pure_modifier.sol
@@ -0,0 +1,6 @@
+contract C {
+ uint x;
+ function() pure { x = 2; }
+}
+// ----
+// TypeError: (29-55): Fallback function must be payable or non-payable, but is "pure".