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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [packed9.C] - Blame information for rev 841

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// Copyright (C) 2005 Free Software Foundation, Inc.
2
// Contributed by Nathan Sidwell 26 Apr 2005 
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
}

powered by: WebSVN 2.1.0

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