Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/ext/packed9.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// Copyright (C) 2005 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 26 Apr 2005 <nathan@codesourcery.com> // DR21166. unnecessary error on packed char struct s1 { char c1; } __attribute__((packed)); char& f(struct s1 *s) { return s->c1; } char * g(struct s1 *s) { return &s->c1; }