summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2013-10-09 00:22:23 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2013-10-09 00:22:23 +0000
commit767c1f84283acd1256ff3391b7e40da6289301f2 (patch)
tree2f4814676123c01db4e6f9e33aaa55c706915412 /clang/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp
parente4e12d045583adbf1d4c1a11c21747066ba46f15 (diff)
downloadbcm5719-llvm-767c1f84283acd1256ff3391b7e40da6289301f2.tar.gz
bcm5719-llvm-767c1f84283acd1256ff3391b7e40da6289301f2.zip
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
Diffstat (limited to 'clang/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp')
-rw-r--r--clang/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp2
1 files changed, 1 insertions, 1 deletions
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 c8a91892a93..aa76b3a7346 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<typename T> struct ABC {
int func () {
- return sizeof T; //expected-error{{missed parentheses around type name in sizeof}}
+ return sizeof T; // expected-error {{expected parentheses around type name in sizeof expression}}
}
};
OpenPOWER on IntegriCloud