Fix type in the changelog entry,
[official-gcc.git] / gcc / testsuite / g++.dg / ipa / pr64049.h
blob9e289993444ad9d338322d656b6bec2deb078d5c
1 #define _ASSERTION(expr, message) { if (!(expr)) __builtin_abort (); } (void)0
3 typedef unsigned int EnumStatusCode;
5 class StatusCode
7 public:
8 static const EnumStatusCode ERROR = 0x8000;
9 static const EnumStatusCode SUCCESS = 0x0000;
10 static bool isSUCCEEDED (EnumStatusCode res) { return (res == SUCCESS); }
13 class LocalizedTextStruct
15 public:
16 LocalizedTextStruct () {}
17 LocalizedTextStruct (const char *val)
19 __builtin_strcpy (t, val);
21 char *getT () { return t; }
22 private:
23 char t[99];
26 typedef union tagValueUnion
28 LocalizedTextStruct* LocalizedText;
29 } ValueStructUnion;
31 typedef struct ValueStruct
33 unsigned char arrayType;
34 unsigned short dataType;
35 ValueStructUnion value;
36 } ValueStruct;
38 class LocalizedText
40 public:
41 virtual LocalizedTextStruct* getInternHandle ();
42 private:
43 LocalizedTextStruct t;
46 class ValueHelper
48 public:
49 static EnumStatusCode getLocalizedText (const ValueStruct* pValueStruct, LocalizedText& target);
50 static LocalizedText getLocalizedText (const ValueStruct* pValueStruct);
53 EnumStatusCode LocalizedTextSet (LocalizedTextStruct* pTarget, LocalizedTextStruct* pSource);