1 // RUN: %clang_cc1 %s -fsyntax-only -verify -fblocks
2 // rdar://10466373
3 
4 typedef short SHORT;
5 
f0()6 void f0() {
7   (void) ^{
8     if (1)
9       return (float)1.0;
10     else if (2)
11       return (double)2.0; // expected-error {{return type 'double' must match previous return type 'float' when block literal has}}
12     else
13       return (SHORT)3; // expected-error {{return type 'SHORT' (aka 'short') must match previous return type 'float' when}}
14   };
15 }
16