summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/declspec.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-24 06:25:27 +0000
committerChris Lattner <sabre@nondot.org>2008-11-24 06:25:27 +0000
commit1e5665e6be5b00219581c1b951e0e5721c8b64e0 (patch)
treeb67f3b9be0871c3ff9bb37414bb3fe7723bd1156 /clang/test/Sema/declspec.c
parentf3d3faeca60a7fab63ee03bf2b04d65d8640374e (diff)
downloadbcm5719-llvm-1e5665e6be5b00219581c1b951e0e5721c8b64e0.tar.gz
bcm5719-llvm-1e5665e6be5b00219581c1b951e0e5721c8b64e0.zip
Change a whole lot of diagnostics to take QualType's directly
instead of converting them to strings first. This also fixes a bunch of minor inconsistencies in the diagnostics emitted by clang and adds a bunch of FIXME's to DiagnosticKinds.def. llvm-svn: 59948
Diffstat (limited to 'clang/test/Sema/declspec.c')
-rw-r--r--clang/test/Sema/declspec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/declspec.c b/clang/test/Sema/declspec.c
index 1e84d6523e7..6e29625792d 100644
--- a/clang/test/Sema/declspec.c
+++ b/clang/test/Sema/declspec.c
@@ -18,6 +18,6 @@ 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}}
+__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}}
OpenPOWER on IntegriCloud