Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/ext/packed9.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 } |