aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr70174.c
blob: 59d231e1623db0167d21d2385d6ebc3881e698e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR rtl-optimization/70174 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

struct S { int f : 4; } a;
  
void
foo (void)
{ 
  a.f = foo;	/* { dg-warning "assignment to 'signed char:4' from 'void \\(\\*\\)\\(void\\)' makes integer from pointer without a cast" } */
}