r192208 - Fixed messages in tests.

Serge Pavlov sepavloff at gmail.com
Tue Oct 8 10:38:38 PDT 2013


Author: sepavloff
Date: Tue Oct  8 12:38:38 2013
New Revision: 192208

URL: http://llvm.org/viewvc/llvm-project?rev=192208&view=rev
Log:
Fixed messages in tests.

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

Modified: cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.align/p7.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.align/p7.cpp?rev=192208&r1=192207&r2=192208&view=diff
==============================================================================
--- cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.align/p7.cpp (original)
+++ cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.align/p7.cpp Tue Oct  8 12:38:38 2013
@@ -16,5 +16,5 @@ static_assert(alignof(Y<char, int, sizeo
 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}}
 }

Modified: cfe/trunk/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp?rev=192208&r1=192207&r2=192208&view=diff
==============================================================================
--- cfe/trunk/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp (original)
+++ cfe/trunk/test/CXX/expr/expr.unary/expr.sizeof/p1.cpp Tue Oct  8 12:38:38 2013
@@ -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}}
   }
 };
 

Modified: cfe/trunk/test/Parser/expressions.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/expressions.c?rev=192208&r1=192207&r2=192208&view=diff
==============================================================================
--- cfe/trunk/test/Parser/expressions.c (original)
+++ cfe/trunk/test/Parser/expressions.c Tue Oct  8 12:38:38 2013
@@ -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}}
 }





More information about the cfe-commits mailing list