Bump to doxygen 1.9.2
[platform/upstream/doxygen.git] / testing / 073_typed_enum.cpp
1 // objective: test underlying type and strongness for an enum
2 // check: 073__typed__enum_8cpp.xml
3
4 /** \file */
5
6 /** @brief A strongly-typed enum */
7 enum class E: unsigned short {};
8
9 /** @brief Strongly types enum when values that has the same name as the enum */
10 enum class Mem : unsigned char {
11   Bottom = 0,
12   NotMem = 1U << 0,
13   Ptr    = 1U << 1,
14   Lval   = 1U << 2,
15   Mem    = Ptr | Lval,
16   Top    = NotMem | Mem,
17 };
18
19 enum {
20   Unnamed1
21 };
22
23 enum {
24   Unnamed2
25 };