Commit 2b3ae5d1 by Marek Polacek Committed by Marek Polacek

re PR c/62294 (Missing "passing argument [...] from incompatible pointer type" warning.)

	PR c/62294
	* gcc.dg/pr62294.c: New test.
	* gcc.dg/pr62294.h: New file.

From-SVN: r214876
parent 27732ffd
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
......
/* 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" } */
}
#pragma GCC system_header
#define foo bar
extern void foo (float *);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment