From: Serge Pavlov Date: Tue, 8 Oct 2013 17:38:38 +0000 (+0000) Subject: Fixed messages in tests. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e391e516c70c64457c009574de18d0a29ca42b6;p=clang Fixed messages in tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192208 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/dcl.dcl/dcl.attr/dcl.align/p7.cpp b/test/CXX/dcl.dcl/dcl.attr/dcl.align/p7.cpp index 05a3926867..0f8f5f5e75 100644 --- a/test/CXX/dcl.dcl/dcl.attr/dcl.align/p7.cpp +++ b/test/CXX/dcl.dcl/dcl.attr/dcl.align/p7.cpp @@ -16,5 +16,5 @@ static_assert(alignof(Y) == alignof(int), ""); static_assert(alignof(Y) == alignof(int), ""); // expected-note {{in instantiation of}} void pr16992 () { - int x = alignof int; // expected-error{{missed parenthesis around the type name in alignof}} + int x = alignof int; // expected-error{{missed parentheses around type name in alignof}} } diff --git a/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp b/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp index cd0747fce5..c8a91892a9 100644 --- a/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp +++ b/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp @@ -31,7 +31,7 @@ namespace pr16992 { template struct ABC { int func () { - return sizeof T; //expected-error{{missed parenthesis around the type name in sizeof}} + return sizeof T; //expected-error{{missed parentheses around type name in sizeof}} } }; diff --git a/test/Parser/expressions.c b/test/Parser/expressions.c index 6c567f91ba..dfc8f6c712 100644 --- a/test/Parser/expressions.c +++ b/test/Parser/expressions.c @@ -62,8 +62,8 @@ void test7() { struct pr16992 { int x; }; void func_16992 () { - int x1 = sizeof int; // expected-error{{missed parenthesis around the type name in sizeof}} - int x2 = sizeof struct pr16992; // expected-error{{missed parenthesis around the type name in sizeof}} - int x3 = __alignof int; // expected-error{{missed parenthesis around the type name in __alignof}} - int x4 = _Alignof int; // expected-error{{missed parenthesis around the type name in _Alignof}} + 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}} }