1 | // RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks |
---|---|
2 | |
3 | void foo() { |
4 | ^ (void) __attribute__((noreturn)) { }(); // expected-error {{block declared 'noreturn' should not return}} |
5 | } |
6 |
1 | // RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks |
---|---|
2 | |
3 | void foo() { |
4 | ^ (void) __attribute__((noreturn)) { }(); // expected-error {{block declared 'noreturn' should not return}} |
5 | } |
6 |