]> granicus.if.org Git - clang/commitdiff
Fixed messages in tests.
authorSerge Pavlov <sepavloff@gmail.com>
Tue, 8 Oct 2013 17:38:38 +0000 (17:38 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Tue, 8 Oct 2013 17:38:38 +0000 (17:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192208 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/dcl.dcl/dcl.attr/dcl.align/p7.cpp
test/CXX/expr/expr.unary/expr.sizeof/p1.cpp
test/Parser/expressions.c

index 05a3926867867511320a7b5dab619ed135f997c4..0f8f5f5e75d4088b73042a3ca601a5cbacb5be75 100644 (file)
@@ -16,5 +16,5 @@ static_assert(alignof(Y<char, int, sizeof(int)>) == alignof(int), "");
 static_assert(alignof(Y<int, char, 1>) == 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}}
 }
index cd0747fce59b7b5bff5b4b2cae81f043c27315d0..c8a91892a93086fb19b12023660843ba7aecc1ce 100644 (file)
@@ -31,7 +31,7 @@ namespace pr16992 {
 
 template<typename T> 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}}
   }
 };
 
index 6c567f91baa1c472415e2e6ecd8c2e65b61560ab..dfc8f6c712b0be82a9d52a21a9c063a6f23083f2 100644 (file)
@@ -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}}
 }