Skip to content

Commit 36ef15b

Browse files
committed
test: add test for custom layouts
1 parent 44f644d commit 36ef15b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

test/corpus/layout.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
================================================================================
2+
Custom Layout
3+
================================================================================
4+
5+
contract C layout at 2**255 - 42 {
6+
uint x;
7+
}
8+
9+
--------------------------------------------------------------------------------
10+
11+
(source_file
12+
(contract_declaration
13+
name: (identifier)
14+
(layout_specifier
15+
(expression
16+
(binary_expression
17+
left: (expression
18+
(binary_expression
19+
left: (expression
20+
(number_literal))
21+
right: (expression
22+
(number_literal))))
23+
right: (expression
24+
(number_literal)))))
25+
body: (contract_body
26+
(state_variable_declaration
27+
type: (type_name
28+
(primitive_type))
29+
name: (identifier)))))

0 commit comments

Comments
 (0)