aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-07-21 22:54:02 +0000
committerMike Stump <mrs@apple.com>2009-07-21 22:54:02 +0000
commit74bfeb39e7150d184c12d6dc2771a8b48b7d6af6 (patch)
tree27251a952eb72a858a4d8f5de7a35f5604b80969
parent393612e6c7727f1fee50039254d9f434364cc0b2 (diff)
Prep for new warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76670 91177308-0d34-0410-b5e6-96231b3b80d8
-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;