PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / pr67730-2.c
blob260cc3e3821c6db51010e8784bf3826f370fd990
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 of 'int' from 'void \\*' makes integer from pointer" } */
13 a = NULL; /* { dg-warning "assignment to 'int' from 'void \\*' makes integer from pointer" } */
14 bar (NULL); /* { dg-warning "passing argument 1" } */
15 return NULL; /* { dg-warning "returning 'void \\*' from a function with return type 'int' makes integer from pointer" } */
18 int
19 fn2 (void)
21 RETURN; /* { dg-warning "returning 'void \\*' from a function with return type 'int' makes integer from pointer" } */