diff options
author | Timm Bäder <tbaeder@redhat.com> | 2024-06-21 09:30:53 +0200 |
---|---|---|
committer | Timm Bäder <tbaeder@redhat.com> | 2024-06-22 18:54:42 +0200 |
commit | 170c194ec19c76deee33d8aa8b288368c574f7a0 (patch) | |
tree | 0f061027928cdfa820173d7bd8dd7e0458b5ee1d /clang/test/CodeGen/cfstring.c | |
parent | a4ca22506c96cd8508bcfb93a26941f19c7179ef (diff) | |
download | llvm-170c194ec19c76deee33d8aa8b288368c574f7a0.zip llvm-170c194ec19c76deee33d8aa8b288368c574f7a0.tar.gz llvm-170c194ec19c76deee33d8aa8b288368c574f7a0.tar.bz2 |
[clang][Interp] Fix CFStringMakeConstantString etc. evaluation
We're ultimately expected to return an APValue simply pointing to
the CallExpr, not any useful value. Do that by creating a global
variable for the call.
Diffstat (limited to 'clang/test/CodeGen/cfstring.c')
-rw-r--r-- | clang/test/CodeGen/cfstring.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/CodeGen/cfstring.c b/clang/test/CodeGen/cfstring.c index 4a84d00..8614186 100644 --- a/clang/test/CodeGen/cfstring.c +++ b/clang/test/CodeGen/cfstring.c @@ -1,6 +1,7 @@ // REQUIRES: x86-registered-target // RUN: %clang_cc1 -triple x86_64-macho -emit-llvm %s -o %t +// RUN: %clang_cc1 -triple x86_64-macho -emit-llvm %s -o %t -fexperimental-new-constant-interpreter // Check that the backing store of CFStrings are constant with the // -fwritable-strings flag. |