diff options
Diffstat (limited to 'clang/test/Sema/attr-cleanup.c')
| -rw-r--r-- | clang/test/Sema/attr-cleanup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/attr-cleanup.c b/clang/test/Sema/attr-cleanup.c index 9057c27a56f..59ebbfc4599 100644 --- a/clang/test/Sema/attr-cleanup.c +++ b/clang/test/Sema/attr-cleanup.c @@ -8,8 +8,8 @@ static int g3 __attribute((cleanup(c1))); // expected-warning {{cleanup attribut void t1() { - int v1 __attribute((cleanup)); // expected-error {{attribute requires 1 argument(s)}} - int v2 __attribute((cleanup(1, 2))); // expected-error {{attribute requires 1 argument(s)}} + int v1 __attribute((cleanup)); // expected-error {{attribute takes one argument}} + int v2 __attribute((cleanup(1, 2))); // expected-error {{attribute takes one argument}} static int v3 __attribute((cleanup(c1))); // expected-warning {{cleanup attribute ignored}} |

