Skip to content

Commit 126481e

Browse files
Update testgarbage.cpp
1 parent b2a96d4 commit 126481e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/testgarbage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ class TestGarbage : public TestFixture {
848848
}
849849

850850
void garbageCode95() { // #6804
851-
ASSERT_THROW_INTERNAL(checkCode("{ } x x ; { } h h [ ] ( ) ( ) { struct x ( x ) ; int __attribute__ ( ) f ( ) { h - > first = & x ; struct x * n = h - > first ; ( ) n > } }"), AST); // do not crash
851+
ASSERT_THROW_INTERNAL(checkCode("{ } x x ; { } h h [ ] ( ) ( ) { struct x ( x ) ; int __attribute__ ( ) f ( ) { h - > first = & x ; struct x * n = h - > first ; ( ) n > } }"), SYNTAX); // do not crash
852852
}
853853

854854
void garbageCode96() { // #6807

0 commit comments

Comments
 (0)