Skip to content

Commit 46e5a3d

Browse files
Add test case from #594
1 parent 721358d commit 46e5a3d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/test/3C/macro_itype.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
struct s { macro0 };
1212
//CHECK: struct s { macro0 };
1313

14+
// Example from issue correctcomputation/checkedc-clang#594.
15+
#define PARAM_DECL_WITH_ITYPE int *p : itype(_Ptr<int>)
16+
void foo(PARAM_DECL_WITH_ITYPE);
17+
//CHECK: void foo(PARAM_DECL_WITH_ITYPE);
18+
1419
// Just removing the assertion that failed on the above example caused this to
1520
// rewrite incorrectly. The ItypeStr would be left empty, so first parameter
1621
// would be rewritten to `int *b` even though the rewriter intended to give it

0 commit comments

Comments
 (0)