Skip to content

Commit d437bad

Browse files
Update regression tests whose output was improved by the merge of #714.
1 parent f18cc23 commit d437bad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/test/3C/itypes_for_extern.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ struct { int *x; } s, *s_force_rewrite, s_const_arr0[10], *s_const_arr1[10],
129129
//CHECK: struct s_struct_1 *s_force_rewrite : itype(_Ptr<struct s_struct_1>) = ((void *)0);
130130
//CHECK_ALL: struct s_struct_1 s_const_arr0[10] : itype(struct s_struct_1 _Checked[10]);
131131
//CHECK_NOALL: struct s_struct_1 s_const_arr0[10];
132-
//CHECK_ALL: struct s_struct_1 * s_const_arr1[10] : itype(_Ptr<struct s_struct_1> _Checked[10]) = {((void *)0)};
133-
//CHECK_NOALL: struct s_struct_1 * s_const_arr1[10];
132+
//CHECK_ALL: struct s_struct_1 *s_const_arr1[10] : itype(_Ptr<struct s_struct_1> _Checked[10]) = {((void *)0)};
133+
//CHECK_NOALL: struct s_struct_1 *s_const_arr1[10];
134134
// As in the corresponding test in multivardecls.c, the type of s_implicit_type
135135
// is loaded as _Array_ptr<struct s_struct_1>, but it is downgraded back to an
136136
// itype by -itypes-for-extern. As long as 3C lacks real support for itypes on

clang/test/3C/multivardecls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ struct { int *x; } s, *s_force_rewrite, s_const_arr0[10], *s_const_arr1[10],
224224
// The reason this isn't `_Ptr<struct s_struct_1>` is probably the "outer wild
225225
// -> inner wild" constraint
226226
// (https://github.com/correctcomputation/checkedc-clang/issues/656).
227-
//CHECK_NOALL: struct s_struct_1 * s_const_arr1[10];
227+
//CHECK_NOALL: struct s_struct_1 *s_const_arr1[10];
228228
// Like with m_implicit_itype above, 3C treats s_implicit_itype as having type
229229
// _Array_ptr<struct s_struct_1>, but now 3C uses mkString and that type
230230
// actually shows up in the output: not a great result, but at least we test

0 commit comments

Comments
 (0)