We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1d0db3 commit 4ff0db1Copy full SHA for 4ff0db1
1 file changed
test/test64bit.cpp
@@ -39,6 +39,7 @@ class Test64BitPortability : public TestFixture {
39
TEST_CASE(ptrcompare);
40
TEST_CASE(ptrarithmetic);
41
TEST_CASE(returnIssues);
42
+ TEST_CASE(assignment);
43
}
44
45
void check(const char code[]) {
@@ -56,6 +57,15 @@ class Test64BitPortability : public TestFixture {
56
57
check64BitPortability.pointerassignment();
58
59
60
+ void assignment() {
61
+ // #8631
62
+ check("using CharArray = char[16];\n"
63
+ "void f() {\n"
64
+ " CharArray foo = \"\";\n"
65
+ "}");
66
+ ASSERT_EQUALS("", errout.str());
67
+ }
68
+
69
void novardecl() {
70
// if the variable declarations can't be seen then skip the warning
71
check("void foo()\n"
0 commit comments