aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/PCH/ext_vector.c1
-rw-r--r--test/PCH/functions.c1
-rw-r--r--test/PCH/method_pool.h3
3 files changed, 3 insertions, 2 deletions
diff --git a/test/PCH/ext_vector.c b/test/PCH/ext_vector.c
index 4b5c25980e..ab5d2224ba 100644
--- a/test/PCH/ext_vector.c
+++ b/test/PCH/ext_vector.c
@@ -7,4 +7,5 @@
int test(float4 f4) {
return f4.xy; // expected-error{{float2}}
+ return 1;
}
diff --git a/test/PCH/functions.c b/test/PCH/functions.c
index 6d3c5a0f7b..29b873f563 100644
--- a/test/PCH/functions.c
+++ b/test/PCH/functions.c
@@ -12,6 +12,7 @@ float *test_f1(int val, double x, double y) {
return f1(x, y);
else
return f1(x); // expected-error{{too few arguments to function call}}
+ return 0;
}
void test_g0(int *x, float * y) {
diff --git a/test/PCH/method_pool.h b/test/PCH/method_pool.h
index f7af9044d9..80858360d7 100644
--- a/test/PCH/method_pool.h
+++ b/test/PCH/method_pool.h
@@ -22,8 +22,7 @@
@end
@implementation TestMethodPool1
-+ alloc {
-}
++ alloc { return 0; }
- (double)instMethod:(int)foo {
return foo;