From 5815940edc2c655bc82825cfc5d7c4fc8d76c41f Mon Sep 17 00:00:00 2001 From: Serge Pavlov Date: Tue, 8 Oct 2013 17:38:38 +0000 Subject: [PATCH] Fixed messages in tests. llvm-svn: 192208 --- clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/p7.cpp | 2 +- clang/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp | 2 +- clang/test/Parser/expressions.c | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/p7.cpp b/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/p7.cpp index 05a3926..0f8f5f5 100644 --- a/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/p7.cpp +++ b/clang/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/clang/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp b/clang/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp index cd0747f..c8a9189 100644 --- a/clang/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp +++ b/clang/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/clang/test/Parser/expressions.c b/clang/test/Parser/expressions.c index 6c567f9..dfc8f6c 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 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}} } -- 2.7.4