diff options
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/g++.dg/torture/pr42357.C')
-rw-r--r-- | gcc-4.8.1/gcc/testsuite/g++.dg/torture/pr42357.C | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/g++.dg/torture/pr42357.C b/gcc-4.8.1/gcc/testsuite/g++.dg/torture/pr42357.C deleted file mode 100644 index 1a1d64e4f..000000000 --- a/gcc-4.8.1/gcc/testsuite/g++.dg/torture/pr42357.C +++ /dev/null @@ -1,30 +0,0 @@ -// { dg-do compile } -typedef unsigned char uint8; -typedef unsigned int uint32; -class PixelARGB { -public: - ~PixelARGB() throw() { } - PixelARGB (const uint32 argb_) throw() : argb (argb_) { } - inline __attribute__((always_inline)) uint8 getRed() const throw() { - return components.r; - } - union { - uint32 argb; - struct { - uint8 b, g, r, a; - } components; - }; -}; -class Colour { -public: - Colour() throw() : argb (0) {}; - uint8 getRed() const throw() { - return argb.getRed(); - } - PixelARGB argb; -}; -uint8 writeImage (void) { - Colour pixel; - pixel = Colour (); - return pixel.getRed(); -} |