File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -305,6 +305,7 @@ class TestTokenizer : public TestFixture {
305305 TEST_CASE (bitfields16); // Save bitfield bit count
306306 TEST_CASE (bitfields17);
307307 TEST_CASE (bitfields18);
308+ TEST_CASE (bitfields19); // ticket #13733
308309
309310 TEST_CASE (simplifyNamespaceStd);
310311
@@ -4858,6 +4859,11 @@ class TestTokenizer : public TestFixture {
48584859 ASSERT_EQUALS (" [test.cpp:1:29]: (warning) Bit-field size exceeds max number of bits 32767 [tooLargeBitField]\n " , errout_str ());
48594860 }
48604861
4862+ void bitfields19 () {
4863+ const char code[] = " struct S { volatile std::uint32_t a : 10; };" ;
4864+ ASSERT_EQUALS (" struct S { volatile std :: uint32_t a ; } ;" , tokenizeAndStringify (code));
4865+ }
4866+
48614867 void simplifyNamespaceStd () {
48624868 const char *expected;
48634869
You can’t perform that action at this time.
0 commit comments