repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
ext
/
packed9.C
blob
ba5d4ab044f7f79077e5812d97f1f27f8c4795e8
1
// Copyright (C) 2005 Free Software Foundation, Inc.
2
// Contributed by Nathan Sidwell 26 Apr 2005 <nathan@codesourcery.com>
3
4
// DR21166. unnecessary error on packed char
5
6
struct s1 {
7
char c1;
8
} __attribute__((packed));
9
10
char&
11
f(struct s1 *s)
12
{
13
return s->c1;
14
}
15
16
char *
17
g(struct s1 *s)
18
{
19
return &s->c1;
20
}