[clang] 426bf0c - [clang][Interp] Try to fix builtin-functions test on AIX
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 15 22:05:25 PDT 2024
Author: Timm Bäder
Date: 2024-03-16T06:05:03+01:00
New Revision: 426bf0c915aca9e9d78b6192898b95a44d9afcf4
URL: https://github.com/llvm/llvm-project/commit/426bf0c915aca9e9d78b6192898b95a44d9afcf4
DIFF: https://github.com/llvm/llvm-project/commit/426bf0c915aca9e9d78b6192898b95a44d9afcf4.diff
LOG: [clang][Interp] Try to fix builtin-functions test on AIX
See
https://github.com/llvm/llvm-project/commit/0a739eb75fe68b1cec4e4aaad8b5395bb5da9a89#commitcomment-139850284
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 6c8df99a159730..a09c6d3acca5da 100644
--- a/clang/test/AST/Interp/builtin-functions.cpp
+++ b/clang/test/AST/Interp/builtin-functions.cpp
@@ -514,7 +514,9 @@ namespace bswap {
#define CFSTR __builtin___CFStringMakeConstantString
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}}
More information about the cfe-commits
mailing list