summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/block-call.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/block-call.c')
-rw-r--r--clang/test/Sema/block-call.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/Sema/block-call.c b/clang/test/Sema/block-call.c
index 318bc6b2a3b..28e6c68a800 100644
--- a/clang/test/Sema/block-call.c
+++ b/clang/test/Sema/block-call.c
@@ -13,9 +13,11 @@ int main() {
int (^IFP) () = PFR; // OK
- const int (^CIC) () = IFP; // expected-error {{incompatible block pointer types initializing 'int const (^)()' with an expression of type 'int (^)()'}}
+ const int (^CIC) () = IFP; // expected-error {{incompatible block pointer types initializing 'int const (^)()' with an expression of type 'int (^)()'}} \
+ // expected-warning{{type qualifier on return type has no effect}}
+
+ const int (^CICC) () = CIC; // expected-warning{{type qualifier on return type has no effect}}
- const int (^CICC) () = CIC;
int * const (^IPCC) () = 0;
OpenPOWER on IntegriCloud