1// typedef
2typedef unsigned long ULongArrayTypedef[10];
3ULongArrayTypedef ULongArrayVar;
4
5typedef long double*& RefTypedef;
6long double* LongDoublePtrVar = 0;
7RefTypedef RefVar = LongDoublePtrVar;
8
9typedef long long (*FuncPtrTypedef)(int&, unsigned char**, short[], const double, volatile bool);
10FuncPtrTypedef FuncVar;
11
12typedef char (*VarArgsFuncTypedef)(void*, long, unsigned short, unsigned int, ...);
13VarArgsFuncTypedef VarArgsFuncVar;
14
15typedef float (*VarArgsFuncTypedefA)(...);
16VarArgsFuncTypedefA VarArgsFuncVarA;
17
18// unscoped enum
19enum Enum { RED, GREEN, BLUE };
20Enum EnumVar;
21
22enum EnumConst { LOW, NORMAL = 10, HIGH };
23EnumConst EnumConstVar;
24
25enum EnumEmpty {};
26EnumEmpty EnumEmptyVar;
27
28enum EnumUChar : unsigned char { ON, OFF, AUTO };
29EnumUChar EnumCharVar;
30
31// scoped enum
32enum class EnumClass { YES, NO, DEFAULT };
33EnumClass EnumClassVar;
34
35enum struct EnumStruct { red, blue, black };
36EnumStruct EnumStructVar;
37
38typedef signed char SCharTypedef;
39SCharTypedef SCVar;
40
41typedef char16_t WChar16Typedef;
42WChar16Typedef WC16Var;
43
44typedef char32_t WChar32Typedef;
45WChar32Typedef WC32Var;
46
47typedef wchar_t WCharTypedef;
48WCharTypedef WCVar;
49
50int main() {
51 return 0;
52}
53

source code of lldb/test/Shell/SymbolFile/PDB/Inputs/SimpleTypesTest.cpp