diff options
Diffstat (limited to 'test/Sema/attr-cleanup.c')
-rw-r--r-- | test/Sema/attr-cleanup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/attr-cleanup.c b/test/Sema/attr-cleanup.c index 59ebbfc..991822e 100644 --- a/test/Sema/attr-cleanup.c +++ b/test/Sema/attr-cleanup.c @@ -38,3 +38,7 @@ void t4() { __attribute((cleanup(c4))) void* g; } +void c5(void*) __attribute__((deprecated)); // expected-note{{'c5' declared here}} +void t5() { + int i __attribute__((cleanup(c5))); // expected-warning {{'c5' is deprecated}} +} |