Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr42357.C
blob1a1d64e4f8e9fb4cffd158de1a9428a2f237ead3
1 // { dg-do compile }
2 typedef unsigned char uint8;
3 typedef unsigned int uint32;
4 class PixelARGB {
5 public:
6     ~PixelARGB() throw() { }
7     PixelARGB (const uint32 argb_) throw() : argb (argb_)     { }
8     inline __attribute__((always_inline)) uint8 getRed() const throw() {
9         return components.r;
10     }
11     union     {
12         uint32 argb;
13         struct         {
14             uint8 b, g, r, a;
15         } components;
16     };
18 class Colour {
19 public:
20     Colour() throw() : argb (0) {};
21     uint8 getRed() const throw() {
22         return argb.getRed();
23     }
24     PixelARGB argb;
26 uint8 writeImage (void) {
27     Colour pixel;
28     pixel = Colour ();
29     return pixel.getRed();