[clang] f203cb0 - Fix a benign typo in a test; NFC

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed May 22 10:18:11 PDT 2024


Author: Aaron Ballman
Date: 2024-05-22T13:17:56-04:00
New Revision: f203cb03d93240cfd79e603b742006f96227a00b

URL: https://github.com/llvm/llvm-project/commit/f203cb03d93240cfd79e603b742006f96227a00b
DIFF: https://github.com/llvm/llvm-project/commit/f203cb03d93240cfd79e603b742006f96227a00b.diff

LOG: Fix a benign typo in a test; NFC

We were still matching the expected diagnostic, but this ensures we
match the opening quotation mark as well.

Added: 
    

Modified: 
    clang/test/CXX/expr/expr.unary/expr.sizeof/p5-0x.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/CXX/expr/expr.unary/expr.sizeof/p5-0x.cpp b/clang/test/CXX/expr/expr.unary/expr.sizeof/p5-0x.cpp
index afd8ef05302fc..19f90801df31c 100644
--- a/clang/test/CXX/expr/expr.unary/expr.sizeof/p5-0x.cpp
+++ b/clang/test/CXX/expr/expr.unary/expr.sizeof/p5-0x.cpp
@@ -33,6 +33,6 @@ template<int Value> struct count_ints_2 {
 template<typename ...Types> // expected-note{{parameter pack 'Types' declared here}}
 struct count_types_2 {
   static const unsigned value = sizeof... Type; // expected-error{{missing parentheses around the size of parameter pack 'Type'}} \
-  // expected-error{{Type' does not refer to the name of a parameter pack; did you mean 'Types'?}}
+  // expected-error{{'Type' does not refer to the name of a parameter pack; did you mean 'Types'?}}
 };
 


        


More information about the cfe-commits mailing list