[clang] b85e5b4 - Speculatively fix test bots

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 8 09:55:01 PST 2024


Author: Aaron Ballman
Date: 2024-11-08T12:54:00-05:00
New Revision: b85e5b49d3efc37e837757a5154884648dc57113

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

LOG: Speculatively fix test bots

This should address the issues found by:
https://lab.llvm.org/buildbot/#/builders/12/builds/9226
https://lab.llvm.org/buildbot/#/builders/140/builds/10487
https://lab.llvm.org/buildbot/#/builders/27/builds/1752

Added: 
    

Modified: 
    clang/test/C/C2y/n3346.c

Removed: 
    


################################################################################
diff  --git a/clang/test/C/C2y/n3346.c b/clang/test/C/C2y/n3346.c
index 2f0ef51d56fb76..d649181f100448 100644
--- a/clang/test/C/C2y/n3346.c
+++ b/clang/test/C/C2y/n3346.c
@@ -49,8 +49,8 @@ void test2(void) {
   char str3[] = u8"string literal";
   char str4[] = { u8"string literal" };
 
-  int str5[] = "this doesn't work";          // expected-error {{array initializer must be an initializer list}}
-  int str6[] = { "this also doesn't work" }; // expected-error {{incompatible pointer to integer conversion initializing 'int' with an expression of type 'char[23]'}}
+  float str5[] = "this doesn't work";          // expected-error {{array initializer must be an initializer list}}
+  float str6[] = { "this also doesn't work" }; // expected-error {{initializing 'float' with an expression of incompatible type 'char[23]'}}
 
   wchar_t str7[] = L"string literal";
   wchar_t str8[] = { L"string literal" };


        


More information about the cfe-commits mailing list