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 | void foo() { | ||||
4 | ^ int (void) { }(); // expected-error {{control reaches end of non-void block}} | ||||
5 | } |