[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / packed9.C
blobba5d4ab044f7f79077e5812d97f1f27f8c4795e8
1 // Copyright (C) 2005 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 26 Apr 2005 <nathan@codesourcery.com>
4 // DR21166. unnecessary error on packed char
6 struct s1 {
7         char    c1;
8 } __attribute__((packed));
10 char&
11 f(struct s1 *s)
13         return s->c1;
16 char *
17 g(struct s1 *s)
19         return &s->c1;