Skip to content

Commit bfb1e92

Browse files
test case for combined struct assignments
1 parent 52d924d commit bfb1e92

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/lang/c/test_c.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,15 @@ def test_struct_copy(self):
307307
"""
308308
self.do(src)
309309

310+
def test_struct_combined_assignment(self):
311+
src = """
312+
struct S{ int a; } s;
313+
void main(){
314+
s.a == 1;
315+
}
316+
"""
317+
self.do(src)
318+
310319
def test_bad_bitfield_type(self):
311320
"""Test bad bitfield type"""
312321
src = """

0 commit comments

Comments
 (0)