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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [parse/] [pragma3.C] - Blame information for rev 841

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

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

powered by: WebSVN 2.1.0

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