Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks |
Mike Stump | 5692586 | 2009-07-28 22:04:01 +0000 | [diff] [blame] | 2 | |
3 | int j; | ||||
4 | void foo() { | ||||
5 | ^ (void) { if (j) return 1; }(); // expected-error {{control may reach end of non-void block}} | ||||
6 | } |