diff options
Diffstat (limited to 'clang/test/Sema/declspec.c')
-rw-r--r-- | clang/test/Sema/declspec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Sema/declspec.c b/clang/test/Sema/declspec.c index 6e29625792d..0207b4aacc5 100644 --- a/clang/test/Sema/declspec.c +++ b/clang/test/Sema/declspec.c @@ -16,8 +16,8 @@ static void buggy(int *x) { } // expected-error {{function definition declared ' // Type qualifiers. typedef int f(void); typedef f* fptr; -const f* v1; // expected-warning {{qualifier on function type 'f' has unspecified behavior}} -__restrict__ f* v2; // expected-error {{restrict requires a pointer or reference ('f' is invalid)}} -__restrict__ fptr v3; // expected-error {{pointer to function type 'f' may not be 'restrict' qualified}} -f *__restrict__ v4; // expected-error {{pointer to function type 'f' may not be 'restrict' qualified}} +const f* v1; // expected-warning {{qualifier on function type 'f' (aka 'int (void)') has unspecified behavior}} +__restrict__ f* v2; // expected-error {{restrict requires a pointer or reference ('f' (aka 'int (void)') is invalid)}} +__restrict__ fptr v3; // expected-error {{pointer to function type 'f' (aka 'int (void)') may not be 'restrict' qualified}} +f *__restrict__ v4; // expected-error {{pointer to function type 'f' (aka 'int (void)') may not be 'restrict' qualified}} |