From 767c1f84283acd1256ff3391b7e40da6289301f2 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Wed, 9 Oct 2013 00:22:23 +0000 Subject: Make wording for certain invalid unary expressions more consistent. An invalid decltype expression like 'decltype int' gives: error: expected '(' after 'decltype' This makes it so 'sizeof int' gives a similar one: error: expected parentheses around type name in sizeof expression llvm-svn: 192258 --- clang/test/Parser/expressions.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'clang/test/Parser/expressions.c') diff --git a/clang/test/Parser/expressions.c b/clang/test/Parser/expressions.c index dfc8f6c712b..95d6fb354f3 100644 --- a/clang/test/Parser/expressions.c +++ b/clang/test/Parser/expressions.c @@ -62,8 +62,8 @@ void test7() { struct pr16992 { int x; }; void func_16992 () { - int x1 = sizeof int; // expected-error{{missed parentheses around type name in sizeof}} - int x2 = sizeof struct pr16992; // expected-error{{missed parentheses around type name in sizeof}} - int x3 = __alignof int; // expected-error{{missed parentheses around type name in __alignof}} - int x4 = _Alignof int; // expected-error{{missed parentheses around type name in _Alignof}} + int x1 = sizeof int; // expected-error {{expected parentheses around type name in sizeof expression}} + int x2 = sizeof struct pr16992; // expected-error {{expected parentheses around type name in sizeof expression}} + int x3 = __alignof int; // expected-error {{expected parentheses around type name in __alignof expression}} + int x4 = _Alignof int; // expected-error {{expected parentheses around type name in _Alignof expression}} } -- cgit v1.2.3