]> granicus.if.org Git - clang/commitdiff
Prep for new warning.
authorMike Stump <mrs@apple.com>
Tue, 21 Jul 2009 22:54:02 +0000 (22:54 +0000)
committerMike Stump <mrs@apple.com>
Tue, 21 Jul 2009 22:54:02 +0000 (22:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76670 91177308-0d34-0410-b5e6-96231b3b80d8

test/PCH/ext_vector.c
test/PCH/functions.c
test/PCH/method_pool.h

index 4b5c25980e56a901ecd240f57e25fc2b19fdc7a1..ab5d2224ba838debbaae96b9ccdbcf087c392111 100644 (file)
@@ -7,4 +7,5 @@
 
 int test(float4 f4) {
   return f4.xy; // expected-error{{float2}}
+  return 1;
 }
index 6d3c5a0f7b8185a012106a6804e629b9da1797ee..29b873f56301f80539d6f361790b3662ef224f2c 100644 (file)
@@ -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) {
index f7af9044d92d176aadea61b42e15220f7d52ccf9..80858360d7254cdbe329fd258bf67c266dbac905 100644 (file)
@@ -22,8 +22,7 @@
 @end
 
 @implementation TestMethodPool1
-+ alloc {
-}
++ alloc { return 0; }
 
 - (double)instMethod:(int)foo {
   return foo;