| 1 |
// RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s |
| 2 |
|
| 3 |
// Test that sentinel attribute on block variables doesn't crash |
| 4 |
void foo(void) { |
| 5 |
void (^a)() __attribute__((__sentinel__)) = {}; // expected-warning {{'sentinel' attribute requires named arguments}} |
| 6 |
} |