diff options
Diffstat (limited to 'test/CodeGenCXX/unknown-anytype.cpp')
-rw-r--r-- | test/CodeGenCXX/unknown-anytype.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/unknown-anytype.cpp b/test/CodeGenCXX/unknown-anytype.cpp index aacb849..e6f887b 100644 --- a/test/CodeGenCXX/unknown-anytype.cpp +++ b/test/CodeGenCXX/unknown-anytype.cpp @@ -115,3 +115,11 @@ extern "C" __unknown_anytype test10_any(...); void test10() { (void) test10_any(), (void) test10_any(); } + +extern "C" __unknown_anytype malloc(...); +void test11() { + void *s = (void*)malloc(12); + // COMMON: call i8* (i32, ...)* @malloc(i32 12) + void *d = (void*)malloc(435); + // COMMON: call i8* (i32, ...)* @malloc(i32 435) +} |