Skip to content

Commit 524eb39

Browse files
Update test
1 parent cc9024a commit 524eb39

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

clang/test/3C/params_in_macro.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@
1111

1212
typedef double mydouble;
1313

14-
// TODO: FunctionDeclBuilder::buildDeclVar should be able to handle an itype
15-
// here, but currently the PointerConstraintVariable constructor asserts when it
16-
// fails to retrieve the original source of the itype declaration.
1714
#define parms1 volatile mydouble d, void (*f)(void)
18-
#define parms2 int *const y : count(7), _Ptr<char> z
15+
#define parms2 int *const y : count(7), _Ptr<char> z, int *zz : itype(_Ptr<int>)
1916

2017
void test(parms1, int *x, parms2) {}
21-
// CHECK: void test(volatile mydouble d, void (*f)(void), _Ptr<int> x, int *const y : count(7), _Ptr<char> z) {}
18+
// CHECK: void test(volatile mydouble d, void (*f)(void), _Ptr<int> x, int *const y : count(7), _Ptr<char> z, int *zz : itype(_Ptr<int>)) {}
2219

2320
// Before the bug fix, we got:
24-
// void test(, , _Ptr<int> x, , ) {}
21+
// void test(, , _Ptr<int> x, , , ) {}

0 commit comments

Comments
 (0)