-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- min/max the col (sometime norminette returns a weird col) - add a visual test - We don't need to do -1 (norminette do +1 only for col=0 and this behavior is a bug)
- Loading branch information
1 parent
b6e9f29
commit d5e8206
Showing
2 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// <--- here error on the second `/` | ||
//23456789012345678901234567890 | ||
|
||
// vvvv------ 1 error | ||
int main(void) | ||
{ | ||
return a; | ||
if (test) | ||
return a; | ||
} | ||
// ^---^--- 2 errors on `a` | ||
static int test(void) | ||
{ | ||
return (0); | ||
} | ||
// ^^^^--- 1 on error on `test` | ||
|
||
int n(long a) | ||
{ | ||
double a; | ||
|
||
return (0); | ||
} | ||
|
||
#include "test.h" // <--- here here `include` | ||
|
||
int n(void) | ||
{ | ||
return a; | ||
if (test) | ||
return a; | ||
} | ||
// ^---^--- 4 errors: 2 on `a` | ||
// ^^^-^^^--------- 2 after `;` | ||
|
||
int n(void) | ||
{ | ||
return (a); | ||
if (test) | ||
return (a); | ||
} | ||
// ^---^--- 2 errors after `;` |