diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Misc/diag-aka-types.cpp | 2 | ||||
-rw-r--r-- | test/Sema/varargs-x86-64.c | 2 | ||||
-rw-r--r-- | test/SemaCXX/reinterpret-cast.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/Misc/diag-aka-types.cpp b/test/Misc/diag-aka-types.cpp index 7233c4e85b..51d4093e74 100644 --- a/test/Misc/diag-aka-types.cpp +++ b/test/Misc/diag-aka-types.cpp @@ -7,4 +7,4 @@ foo_t *ptr; char c1 = ptr; // expected-error{{'foo_t *' (aka 'X *')}} const foo_t &ref = foo_t(); -char c2 = ref; // expected-error{{'foo_t const' (aka 'X const')}} +char c2 = ref; // expected-error{{'const foo_t' (aka 'X const')}} diff --git a/test/Sema/varargs-x86-64.c b/test/Sema/varargs-x86-64.c index 2cfedc1b37..2fe9b10cf7 100644 --- a/test/Sema/varargs-x86-64.c +++ b/test/Sema/varargs-x86-64.c @@ -3,6 +3,6 @@ // rdar://6726818 void f1() { const __builtin_va_list args2; - (void)__builtin_va_arg(args2, int); // expected-error {{first argument to 'va_arg' is of type '__builtin_va_list const' and not 'va_list'}} + (void)__builtin_va_arg(args2, int); // expected-error {{first argument to 'va_arg' is of type 'const __builtin_va_list' and not 'va_list'}} } diff --git a/test/SemaCXX/reinterpret-cast.cpp b/test/SemaCXX/reinterpret-cast.cpp index 335fe7edbc..bde4a0c4ec 100644 --- a/test/SemaCXX/reinterpret-cast.cpp +++ b/test/SemaCXX/reinterpret-cast.cpp @@ -105,6 +105,6 @@ void const_arrays() { const STRING *s; const char *c; - (void)reinterpret_cast<char *>(s); // expected-error {{reinterpret_cast from 'STRING const *' (aka 'char const (*)[10]') to 'char *' casts away constness}} + (void)reinterpret_cast<char *>(s); // expected-error {{reinterpret_cast from 'const STRING *' (aka 'char const (*)[10]') to 'char *' casts away constness}} (void)reinterpret_cast<const STRING *>(c); } |