diff options
Diffstat (limited to 'test/lisp/progmodes/flymake-resources/errors-and-warnings.c')
-rw-r--r-- | test/lisp/progmodes/flymake-resources/errors-and-warnings.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lisp/progmodes/flymake-resources/errors-and-warnings.c b/test/lisp/progmodes/flymake-resources/errors-and-warnings.c new file mode 100644 index 00000000000..6454dd20236 --- /dev/null +++ b/test/lisp/progmodes/flymake-resources/errors-and-warnings.c @@ -0,0 +1,10 @@ + int main() +{ + char c = 1000; + int bla; + /* The following line should have one warning and one error. The + warning spans the full line because gcc (at least 6.3.0) points + places the error at the =, which isn't a sexp.*/ + char c; if (bla == (void*)3); + return c; +} |