OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [Wpadded.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* 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 be guaranteed for all targets.
6
   We won't get a warning anyway if the target has "packed" structure
7
   layout.  */
8
/* { dg-options "-Wpadded -fpack-struct=8" } */
9
 
10
struct foo {
11
  char bar;
12
  long baz; /* { dg-warning "padding struct to align" ""  { target { ! default_packed } } } */
13
} futz;

powered by: WebSVN 2.1.0

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