view gcc/testsuite/gcc.target/riscv/flattened-struct-abi-2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

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

void dummy(float, float);

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