diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-01-14 19:39:53 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-01-14 19:39:53 +0000 |
commit | ff03fbb6718ff310da3c5a0cb66038666fe6b09a (patch) | |
tree | 2b757ca99194d89832655b6e95c90c11503cbe70 /test/Sema/block-syntax-error.c | |
parent | d77b251b06b8384d23f4f4d726eb5fb65192f390 (diff) |
Patch to keep clang honest that it does not yet support
explicit return type on block literals.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/block-syntax-error.c')
-rw-r--r-- | test/Sema/block-syntax-error.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Sema/block-syntax-error.c b/test/Sema/block-syntax-error.c new file mode 100644 index 0000000000..c98f1fd2aa --- /dev/null +++ b/test/Sema/block-syntax-error.c @@ -0,0 +1,9 @@ +// RUN: clang %s -fsyntax-only -verify -fblocks + +void (^noop)(void); + +void somefunction() { + noop = ^int *{}; // expected-error {{expected expression}} + + noop = ^noop; // expected-error {{expected expression}} +} |