[clang] 1d9fb2e - [clang][Interp] Disable CFStringMakeConstantString test on AIX

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 18 06:53:44 PDT 2024


Author: Timm Bäder
Date: 2024-03-18T14:53:04+01:00
New Revision: 1d9fb2ee612f0ccf588d40dc4b5445cffd36e8af

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

LOG: [clang][Interp] Disable CFStringMakeConstantString test on AIX

It's not only the fist CFSTR call that's broken on AIX.
See https://github.com/llvm/llvm-project/commit/0a739eb75fe68b1cec4e4aaad8b5395bb5da9a89#commitcomment-139910542

Added: 
    

Modified: 
    clang/test/AST/Interp/builtin-functions.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/AST/Interp/builtin-functions.cpp b/clang/test/AST/Interp/builtin-functions.cpp
index a09c6d3acca5da..2e9d1a831dcf6e 100644
--- a/clang/test/AST/Interp/builtin-functions.cpp
+++ b/clang/test/AST/Interp/builtin-functions.cpp
@@ -516,8 +516,8 @@ void test7(void) {
   const void *X;
 #if !defined(_AIX)
   X = CFSTR("\242"); // both-warning {{input conversion stopped}}
-#endif
   X = CFSTR("\0"); // no-warning
   X = CFSTR(242); // both-error {{cannot initialize a parameter of type 'const char *' with an rvalue of type 'int'}}
   X = CFSTR("foo", "bar"); // both-error {{too many arguments to function call}}
+#endif
 }


        


More information about the cfe-commits mailing list