summaryrefslogtreecommitdiff
path: root/clang/test/Sema/block-return-3.c
blob: cd942a7f3047395ce8a4f1f4286dd0735f8fa1ae (about) (plain)
1
2
3
4
5
// RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks

void foo() {
  ^ int (void) { }(); // expected-error {{control reaches end of non-void block}}
}