diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
| commit | 06d4ba388873e6d1cfa9cd715a8935ecc8cd2097 (patch) | |
| tree | 3eb853da77d46cc77c4b017525a422f9ddb1385b /test/CodeGenCXX/unknown-anytype.cpp | |
| parent | 30d791273d07fac9c0c1641a0731191bca6e8606 (diff) | |
Notes
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 aacb8493ef3c9..e6f887bea0839 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) +} |
