about summary refs log tree commit diff homepage
path: root/test/Feature
diff options
context:
space:
mode:
authorLukáš Zaoral <lzaoral@redhat.com>2023-03-18 16:43:02 +0100
committerMartinNowack <2443641+MartinNowack@users.noreply.github.com>2023-03-20 14:35:16 +0000
commitd79d048bfa21b432e1e9e97db9fca9924118b678 (patch)
treee6a9e843891403d974221eb9ba875980f23e79d3 /test/Feature
parent70bf8d0495cee2772ae1b0c1b046721e0339f62f (diff)
downloadklee-d79d048bfa21b432e1e9e97db9fca9924118b678.tar.gz
llvm14: port test/Feature/VarArgByVal.c to LLVM 14
LLVM 14 has introduced the noundef function argument attribute.
Diffstat (limited to 'test/Feature')
-rw-r--r--test/Feature/VarArgByVal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Feature/VarArgByVal.c b/test/Feature/VarArgByVal.c
index 42718bb9..551e6c63 100644
--- a/test/Feature/VarArgByVal.c
+++ b/test/Feature/VarArgByVal.c
@@ -5,8 +5,10 @@
 // RUN: rm -rf %t.klee-out
 // RUN: %klee --exit-on-error --output-dir=%t.klee-out %t1.bc
 // RUN: FileCheck %s --input-file=%t.klee-out/assembly.ll
-// CHECK: @test1({{.*}}, i32 -1, %struct.foo* byval{{.*}} %struct.bar* byval
-// CHECK: @test2({{.*}}, %struct.foo* byval{{.*}} %struct.bar* byval
+//
+// TODO: Make noundef unconditional when LLVM 14 is the oldest supported version.
+// CHECK: @test1({{.*}}, i32 {{(noundef )?}}-1, %struct.foo* {{(noundef )?}}byval{{.*}} %struct.bar* {{(noundef )?}}byval
+// CHECK: @test2({{.*}}, %struct.foo* {{(noundef )?}}byval{{.*}} %struct.bar* {{(noundef )?}}byval
 
 #include <stdarg.h>
 #include <assert.h>