summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr67730-1.c
blob: bb82f6d8e85b2136a213e163afe76bc0db0a957c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR c/67730 */
/* { dg-do compile } */
/* { dg-options "-Wc++-compat" } */

#include "pr67730.h"

extern void bar (unsigned char *);

unsigned char *
f (void *p)
{
   unsigned char *uc = ONEP; /* { dg-warning "request for implicit conversion" } */
   uc = ONEP; /* { dg-warning "request for implicit conversion" } */
   bar (ONEP); /* { dg-warning "request for implicit conversion" } */
   return ONEP; /* { dg-warning "request for implicit conversion" } */
}