Skip to content

Commit 698d1e2

Browse files
author
Aaron Eline
committed
Added test from original issue
1 parent 30aa11d commit 698d1e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clang/test/3C/typedefs.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ void foobar(void) {
5959
startschecked pp = &p;
6060
}
6161

62+
typedef int *intptr;
63+
//CHECK: typedef _Ptr<int> intptr;
64+
void barfoo(intptr x) {
65+
//CHECK: void barfoo(intptr x) _Checked {
66+
*x = 5;
67+
}
6268

6369

6470

0 commit comments

Comments
 (0)