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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [pragma3.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/25294
2
// Epiphany makes struct S 8-byte aligned.
3
// { dg-do run { target { ! epiphany-*-* } } }
4
 
5
extern "C" void abort (void);
6
 
7
struct S
8
{
9
  char a[3];
10
#pragma pack(1) /* A block comment
11
                   that ends on the next line.  */
12
  struct T
13
  {
14
    char b;
15
    int c;
16
  } d;
17
#pragma pack /*/ */ () // C++ comment
18
  int e;
19
} s;
20
 
21
int
22
main ()
23
{
24
  if (sizeof (int) == 4 && sizeof (s) != 12)
25
    abort ();
26
  return 0;
27
}

powered by: WebSVN 2.1.0

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