File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: 3c -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
2
2
// RUN: 3c -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
3
- // RUN: 3c -alltypes -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
3
+ // RUN: 3c -alltypes -addcr %s -- | %clang -c -fcheckedc-extension -Xclang -verify -Xclang -verify-ignore-unexpected=warning,note - x c -o /dev/null -
4
4
// RUN: 3c -alltypes -output-postfix=checked %s
5
5
// RUN: 3c -alltypes %S/liberal_itypes_ptrptr.checked.c -- | count 0
6
6
// RUN: rm %S/liberal_itypes_ptrptr.checked.c
@@ -142,6 +142,11 @@ void itype_defined_caller() {
142
142
143
143
int * * e ;
144
144
* e = 1 ;
145
+ // This expected error is due to
146
+ // https://github.com/microsoft/checkedc-clang/issues/974. When we merge the
147
+ // fix for that bug, diagnostic verification will fail and we will know to
148
+ // remove the expected error.
149
+ // expected-error@+1 {{it is not possible to prove argument meets declared bounds for 1st parameter}}
145
150
itype_defined_ptrptr (e );
146
151
//CHECK: _Ptr<int *> e = ((void *)0);
147
152
//CHECK: itype_defined_ptrptr(_Assume_bounds_cast<_Ptr<_Ptr<int>>>(e));
You can’t perform that action at this time.
0 commit comments