Skip to content

Commit 0113da7

Browse files
committed
Add tests
1 parent f24d711 commit 0113da7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎test/testsymboldatabase.cpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9799,6 +9799,9 @@ class TestSymbolDatabase : public TestFixture {
97999799
ASSERT_EQUALS("signed int", typeOf("int x; a = x++;\n", "++"));
98009800
ASSERT_EQUALS("signed int *", typeOf("enum AB {A,B}; AB *ab; x=ab+2;\n", "+"));
98019801
ASSERT_EQUALS("signed int *", typeOf("enum AB {A,B}; enum AB *ab; x=ab+2;\n", "+"));
9802+
ASSERT_EQUALS("unsigned char", typeOf("enum E : std::uint8_t {}; E e;\n", "e"));
9803+
ASSERT_EQUALS("signed short", typeOf("enum E : short {}; E e;\n", "e"));
9804+
TODO_ASSERT_EQUALS("unsigned short", "", typeOf("enum E : unsigned short {}; E e;\n", "e"));
98029805
ASSERT_EQUALS("AB *", typeOf("struct AB {int a; int b;}; AB ab; x=&ab;\n", "&"));
98039806
ASSERT_EQUALS("AB *", typeOf("struct AB {int a; int b;}; struct AB ab; x=&ab;\n", "&"));
98049807
ASSERT_EQUALS("A::BC *", typeOf("namespace A { struct BC { int b; int c; }; }; struct A::BC abc; x=&abc;\n", "&"));

0 commit comments

Comments
 (0)