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 | ^ (void) __attribute__((noreturn)) { }(); // expected-error {{block declared 'noreturn' should not return}} | ||||
5 | } |