OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* gcc.c-torture/execute/20041218-2.c: Add __attribute__((packed)).
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20041218-2.c
1
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
}