summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes/flymake-resources/errors-and-warnings.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/progmodes/flymake-resources/errors-and-warnings.c')
-rw-r--r--test/lisp/progmodes/flymake-resources/errors-and-warnings.c13
1 files changed, 13 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..1d38bd6bd27
--- /dev/null
+++ b/test/lisp/progmodes/flymake-resources/errors-and-warnings.c
@@ -0,0 +1,13 @@
+/* Flymake should notice an error on the next line, since
+ that file has at least one warning.*/
+#include "some-problems.h"
+/* But not this one */
+#include "no-problems.h"
+
+int main()
+{
+ char c = 1000; /* a note and a warning */
+ int bla;
+ char c; if (bla == (void*)3); /* an error, and two warnings */
+ return c;
+}