PR c/62294
* gcc.dg/pr62294.c: New test.
* gcc.dg/pr62294.h: New file.
From-SVN: r214876
+2014-09-03 Marek Polacek <polacek@redhat.com>
+
+ PR c/62294
+ * gcc.dg/pr62294.c: New test.
+ * gcc.dg/pr62294.h: New file.
+
2014-09-03 Kaz Kojima <kkojima@gcc.gnu.org>
* gcc.c-torture/execute/pr39228.c: Use dg-add-options instead
--- /dev/null
+/* PR c/62294 */
+/* { dg-do compile } */
+
+#include "pr62294.h"
+
+void
+fn (int *u)
+{
+ foo (u); /* { dg-error "passing argument 1 of .bar. from incompatible pointer type" } */
+}
--- /dev/null
+#pragma GCC system_header
+#define foo bar
+extern void foo (float *);