aboutsummaryrefslogtreecommitdiff
path: root/clang
diff options
context:
space:
mode:
authorTimm Bäder <tbaeder@redhat.com>2024-03-16 06:02:52 +0100
committerTimm Bäder <tbaeder@redhat.com>2024-03-16 06:05:03 +0100
commit426bf0c915aca9e9d78b6192898b95a44d9afcf4 (patch)
tree27828d131cf08c7c6bf4458e70a11818006e0842 /clang
parent3e69e5a15782a5776a3245170aeb5d97ef746fa5 (diff)
downloadllvm-426bf0c915aca9e9d78b6192898b95a44d9afcf4.zip
llvm-426bf0c915aca9e9d78b6192898b95a44d9afcf4.tar.gz
llvm-426bf0c915aca9e9d78b6192898b95a44d9afcf4.tar.bz2
[clang][Interp] Try to fix builtin-functions test on AIX
See https://github.com/llvm/llvm-project/commit/0a739eb75fe68b1cec4e4aaad8b5395bb5da9a89#commitcomment-139850284
Diffstat (limited to 'clang')
-rw-r--r--clang/test/AST/Interp/builtin-functions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/AST/Interp/builtin-functions.cpp b/clang/test/AST/Interp/builtin-functions.cpp
index 6c8df99..a09c6d3 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}}