aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/unknown-anytype.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-05-27 18:47:56 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-05-27 18:47:56 +0000
commit5e20cdd81c44a443562a09007668ffdf76c455af (patch)
treedbbd4047878da71c1a706e26ce05b4e7791b14cc /test/CodeGenCXX/unknown-anytype.cpp
parentd5f23b0b7528b5c3caed1ba14f897cc4aaa9e3c3 (diff)
Notes
Diffstat (limited to 'test/CodeGenCXX/unknown-anytype.cpp')
-rw-r--r--test/CodeGenCXX/unknown-anytype.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/CodeGenCXX/unknown-anytype.cpp b/test/CodeGenCXX/unknown-anytype.cpp
index e6f887bea0839..42ed472380b15 100644
--- a/test/CodeGenCXX/unknown-anytype.cpp
+++ b/test/CodeGenCXX/unknown-anytype.cpp
@@ -12,7 +12,7 @@
int test0() {
extern __unknown_anytype test0_any;
- // COMMON: load i32* @test0_any
+ // COMMON: load i32, i32* @test0_any
return (int) test0_any;
}
@@ -24,21 +24,21 @@ int test1() {
extern "C" __unknown_anytype test2_any(...);
float test2() {
- // X86_64: call float (double, ...)* @test2_any(double {{[^,]+}})
- // I386: call float (double, ...)* @test2_any(double {{[^,]+}})
+ // X86_64: call float (double, ...) @test2_any(double {{[^,]+}})
+ // I386: call float (double, ...) @test2_any(double {{[^,]+}})
return (float) test2_any(0.5f);
}
extern "C" __unknown_anytype test2a_any(...);
float test2a() {
- // X86_64: call float (float, ...)* @test2a_any(float {{[^,]+}})
- // I386: call float (float, ...)* @test2a_any(float {{[^,]+}})
+ // X86_64: call float (float, ...) @test2a_any(float {{[^,]+}})
+ // I386: call float (float, ...) @test2a_any(float {{[^,]+}})
return (float) test2a_any((float) 0.5f);
}
float test3() {
extern __unknown_anytype test3_any;
- // COMMON: [[FN:%.*]] = load float (i32)** @test3_any,
+ // COMMON: [[FN:%.*]] = load float (i32)*, float (i32)** @test3_any,
// COMMON: call float [[FN]](i32 5)
return ((float(*)(int)) test3_any)(5);
}
@@ -48,8 +48,8 @@ namespace test4 {
extern __unknown_anytype test4_any2;
int test() {
- // COMMON: load i32* @_ZN5test410test4_any1E
- // COMMON: load i8* @_ZN5test410test4_any2E
+ // COMMON: load i32, i32* @_ZN5test410test4_any1E
+ // COMMON: load i8, i8* @_ZN5test410test4_any2E
return (int) test4_any1 + (char) test4_any2;
}
}
@@ -119,7 +119,7 @@ void test10() {
extern "C" __unknown_anytype malloc(...);
void test11() {
void *s = (void*)malloc(12);
- // COMMON: call i8* (i32, ...)* @malloc(i32 12)
+ // COMMON: call i8* (i32, ...) @malloc(i32 12)
void *d = (void*)malloc(435);
- // COMMON: call i8* (i32, ...)* @malloc(i32 435)
+ // COMMON: call i8* (i32, ...) @malloc(i32 435)
}