diff options
Diffstat (limited to 'test/Sema/attr-noreturn.c')
-rw-r--r-- | test/Sema/attr-noreturn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/attr-noreturn.c b/test/Sema/attr-noreturn.c index 5333a2c13fc2..5c643fff718d 100644 --- a/test/Sema/attr-noreturn.c +++ b/test/Sema/attr-noreturn.c @@ -13,7 +13,7 @@ int f1() __attribute__((noreturn)); int g0 __attribute__((noreturn)); // expected-warning {{'noreturn' only applies to function types; type here is 'int'}} -int f2() __attribute__((noreturn(1, 2))); // expected-error {{attribute requires 0 argument(s)}} +int f2() __attribute__((noreturn(1, 2))); // expected-error {{attribute takes no arguments}} void f3() __attribute__((noreturn)); void f3() { @@ -41,4 +41,4 @@ __attribute__((noreturn)) void f(__attribute__((noreturn)) void (*x)(void)) { x(); } -typedef void (*Fun)(void) __attribute__ ((noreturn(2))); // expected-error {{attribute requires 0 argument(s)}} +typedef void (*Fun)(void) __attribute__ ((noreturn(2))); // expected-error {{attribute takes no arguments}} |