OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [Wpadded.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Source: EMC.  */
2
 
3
/* { dg-do compile } */
4
/* -fpack-struct is necessary because the warning expected requires the initial
5
   packing to be larger than 1, which cannot ge guaranteed for all targets. */
6
/* { dg-options "-Wpadded -fpack-struct=8" } */
7
 
8
struct foo {
9
  char bar;
10
  long baz;                   /* { dg-warning "padding struct to align" } */
11
} futz;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.