view gcc/testsuite/gcc.target/riscv/flattened-struct-abi-1.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-march=rv32gc -mabi=ilp32d" } */
struct s1 { int : 0; float f; int i; int : 0; };

void dummy(float, int);

void f(struct s1 s) { /* { dg-warning "flattened struct" } */
  dummy(s.f + 1.0, s.i + 1);
}