Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/ipa/pr64049.h @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
#define _ASSERTION(expr, message) { if (!(expr)) __builtin_abort (); } (void)0 typedef unsigned int EnumStatusCode; class StatusCode { public: static const EnumStatusCode ERROR = 0x8000; static const EnumStatusCode SUCCESS = 0x0000; static bool isSUCCEEDED (EnumStatusCode res) { return (res == SUCCESS); } }; class LocalizedTextStruct { public: LocalizedTextStruct () {} LocalizedTextStruct (const char *val) { __builtin_strcpy (t, val); } char *getT () { return t; } private: char t[99]; }; typedef union tagValueUnion { LocalizedTextStruct* LocalizedText; } ValueStructUnion; typedef struct ValueStruct { unsigned char arrayType; unsigned short dataType; ValueStructUnion value; } ValueStruct; class LocalizedText { public: virtual LocalizedTextStruct* getInternHandle (); private: LocalizedTextStruct t; }; class ValueHelper { public: static EnumStatusCode getLocalizedText (const ValueStruct* pValueStruct, LocalizedText& target); static LocalizedText getLocalizedText (const ValueStruct* pValueStruct); }; EnumStatusCode LocalizedTextSet (LocalizedTextStruct* pTarget, LocalizedTextStruct* pSource);