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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20041218-2.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
extern void abort (void);
2
 
3
int test(int n)
4
{
5
  struct s { char b[n]; } __attribute__((packed));
6
  n++;
7
  return sizeof(struct s);
8
}
9
 
10
int main()
11
{
12
  if (test(123) != 123)
13
    abort ();
14
  return 0;
15
}

powered by: WebSVN 2.1.0

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