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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [zerolen-2.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
extern void abort(void);
2
 
3
typedef int word __attribute__((mode(word)));
4
 
5
struct foo
6
{
7
  word x;
8
  word y[0];
9
};
10
 
11
int main()
12
{
13
  if (sizeof(word) != sizeof(struct foo))
14
    abort();
15
  if (__alignof__(word) != __alignof__(struct foo))
16
    abort();
17
  return 0;
18
}

powered by: WebSVN 2.1.0

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