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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [packed9.C] - Rev 826

Compare with Previous | Blame | View Log

// 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;
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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