Skip to content

Commit

Permalink
[clang][Interp] Try to fix builtin-functions test on AIX
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Mar 16, 2024
1 parent 3e69e5a commit 426bf0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang/test/AST/Interp/builtin-functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 426bf0c

Please sign in to comment.