Skip to content

Commit 426bf0c

Browse files
committed
[clang][Interp] Try to fix builtin-functions test on AIX
See 0a739eb#commitcomment-139850284
1 parent 3e69e5a commit 426bf0c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,9 @@ namespace bswap {
514514
#define CFSTR __builtin___CFStringMakeConstantString
515515
void test7(void) {
516516
const void *X;
517+
#if !defined(_AIX)
517518
X = CFSTR("\242"); // both-warning {{input conversion stopped}}
519+
#endif
518520
X = CFSTR("\0"); // no-warning
519521
X = CFSTR(242); // both-error {{cannot initialize a parameter of type 'const char *' with an rvalue of type 'int'}}
520522
X = CFSTR("foo", "bar"); // both-error {{too many arguments to function call}}

0 commit comments

Comments
 (0)