We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5683cab commit f9024d3Copy full SHA for f9024d3
clang/test/SemaCXX/uninitialized.cpp
@@ -185,10 +185,6 @@ void test_const_ptr() {
185
const int *ptr2;
186
foo(ptr); // expected-warning {{variable 'ptr' is uninitialized when used here}}
187
foobar(&ptr2);
188
- int *ptr3; // expected-note {{initialize the variable 'ptr3' to silence this warning}}
189
- const int *ptr4; // expected-note {{initialize the variable 'ptr4' to silence this warning}}
190
- bar(ptr3); // expected-warning {{variable 'ptr3' is uninitialized when used here}}
191
- bar(ptr4); // expected-warning {{variable 'ptr4' is uninitialized when used here}}
192
}
193
194
0 commit comments