Fix an exception with notes with no previous message

This commit is contained in:
w0rp
2017-10-25 23:43:09 +01:00
parent 7eb16836d0
commit da365134b5
2 changed files with 14 additions and 2 deletions

View File

@@ -128,3 +128,11 @@ Execute(The GCC handler should handle syntax errors):
\ '<stdin>:4: error: ''cat'' was not declared in this scope',
\ '<stdin>:12: error: expected `;'' before ''o''',
\ ])
Execute(The GCC handler should handle notes with no previous message):
AssertEqual
\ [],
\ ale#handlers#gcc#HandleGCCFormat(347, [
\ '<stdin>:1:1: note: x',
\ '<stdin>:1:1: note: x',
\ ])