Skip to content

Commit

Permalink
Added a test for conditional compilation with gc strategy flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariaKt committed Dec 6, 2024
1 parent 01c324b commit 45b8189
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/defn/imp.kore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// RUN: %interpreter
// RUN: %check-grep
// RUN: %check-statistics
// RUN: %gcs-interpreter
// RUN: %check-grep
// RUN: %proof-interpreter
// RUN: %check-proof-out
[topCellInitializer{}(LblinitGeneratedTopCell{}()), org'Stop'kframework'Stop'attributes'Stop'Source{}("Source(/home/robertorosmaninho/rv/k/llvm-backend/src/main/native/llvm-backend/test/defn/k-files/imp.md)")]
Expand Down
7 changes: 7 additions & 0 deletions test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ def exclude_x86_and_llvm18(s):
exit 1
fi
''')),
('%gcs-interpreter', one_line('''
output=$(%kompile %s main --use-gcstrategy -o %t.interpreter 2>&1)
if [[ -n "$output" ]]; then
echo "llvm-kompile error or warning: $output"
exit 1
fi
''')),
('%proof-interpreter', one_line('''
output=$(%kompile %s main --proof-hint-instrumentation -o %t.interpreter 2>&1)
if [[ -n "$output" ]]; then
Expand Down

0 comments on commit 45b8189

Please sign in to comment.