Skip to content

Commit

Permalink
test: Add %clang tool substitution.
Browse files Browse the repository at this point in the history
  • Loading branch information
lkorenc committed Nov 2, 2023
1 parent 35de638 commit 0e3524c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
"-nostdsysteminc"
]
),
ToolSubst('%file-check', command = 'FileCheck')
ToolSubst('%file-check', command = 'FileCheck'),
ToolSubst('%clang', command = 'clang-17')
]

if 'BUILD_TYPE' in lit_config.params:
Expand Down
2 changes: 1 addition & 1 deletion test/vast/Compile/ObjectFiles/identity-a.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// RUN: %vast-front -c -vast-pipeline=with-abi -o %t.vast.o %s && clang -c -xc %s.driver -o %t.clang.o && clang %t.vast.o %t.clang.o -o %t && (%t; test $? -eq 0)
// RUN: %vast-front -c -vast-pipeline=with-abi -o %t.vast.o %s && %clang -c -xc %s.driver -o %t.clang.o && %clang %t.vast.o %t.clang.o -o %t && (%t; test $? -eq 0)

int identity(int a) { return a; }
2 changes: 1 addition & 1 deletion test/vast/Compile/ObjectFiles/struct-a.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %vast-front -c -vast-use-pipeline=with-abi -o %t.vast.o %s && clang -c -xc %s.driver -o %t.clang.o && clang %t.vast.o %t.clang.o -o %t && (%t; test $? -eq 0)
// RUN: %vast-front -c -vast-use-pipeline=with-abi -o %t.vast.o %s && %clang -c -xc %s.driver -o %t.clang.o && %clang %t.vast.o %t.clang.o -o %t && (%t; test $? -eq 0)

struct Data
{
Expand Down

0 comments on commit 0e3524c

Please sign in to comment.