@@ -7543,12 +7543,21 @@ class TestSymbolDatabase : public TestFixture {
75437543 // auto variables
75447544 ASSERT_EQUALS (" signed int" , typeOf (" ; auto x = 3;" , " x" ));
75457545 ASSERT_EQUALS (" signed int *" , typeOf (" ; auto *p = (int *)0;" , " p" ));
7546+ ASSERT_EQUALS (" const signed int *" , typeOf (" ; auto *p = (const int *)0;" , " p" ));
7547+ ASSERT_EQUALS (" const signed int *" , typeOf (" ; auto *p = (constexpr int *)0;" , " p" ));
7548+ ASSERT_EQUALS (" const signed int *" , typeOf (" ; const auto *p = (int *)0;" , " p" ));
7549+ ASSERT_EQUALS (" const signed int *" , typeOf (" ; constexpr auto *p = (int *)0;" , " p" ));
7550+ ASSERT_EQUALS (" const signed int *" , typeOf (" ; const auto *p = (const int *)0;" , " p" ));
7551+ ASSERT_EQUALS (" const signed int *" , typeOf (" ; constexpr auto *p = (constexpr int *)0;" , " p" ));
7552+ ASSERT_EQUALS (" const signed int *" , typeOf (" ; const constexpr auto *p = (int *)0;" , " p" ));
75467553 ASSERT_EQUALS (" signed int *" , typeOf (" ; auto data = new int[100];" , " data" ));
75477554 ASSERT_EQUALS (" signed int" , typeOf (" ; auto data = new X::Y; int x=1000; x=x/5;" , " /" )); // #7970
75487555 ASSERT_EQUALS (" signed int *" , typeOf (" ; auto data = new (nothrow) int[100];" , " data" ));
75497556 ASSERT_EQUALS (" signed int *" , typeOf (" ; auto data = new (std::nothrow) int[100];" , " data" ));
75507557 ASSERT_EQUALS (" const signed short" , typeOf (" short values[10]; void f() { for (const auto *x : values); }" , " x" ));
75517558 ASSERT_EQUALS (" const signed int" , typeOf (" ; const auto x = 3;" , " x" ));
7559+ ASSERT_EQUALS (" const signed int" , typeOf (" ; constexpr auto x = 3;" , " x" ));
7560+ ASSERT_EQUALS (" const signed int" , typeOf (" ; const constexpr auto x = 3;" , " x" ));
75527561
75537562 // Variable declaration
75547563 ASSERT_EQUALS (" char *" , typeOf (" ; char abc[] = \" abc\" ;" , " [" ));
0 commit comments