2016-09-01 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr67730-2.c
blob29d726754bf0308d40b4f83e4b9daf26eca2b04e
1 /* PR c/67730 */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
5 #include "pr67730.h"
7 extern void bar (int);
9 int
10 fn1 (void)
12 int a = NULL; /* { dg-warning "initialization makes integer from pointer" } */
13 a = NULL; /* { dg-warning "assignment makes integer from pointer" } */
14 bar (NULL); /* { dg-warning "passing argument 1" } */
15 return NULL; /* { dg-warning "return makes integer from pointer" } */
18 int
19 fn2 (void)
21 RETURN; /* { dg-warning "return makes integer from pointer" } */