mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 04:39:44 +00:00
tests: Use %abs_tmp instead of ./%t to make these tests portable to 'lit'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81663 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5110609ceb
commit
fbc18f839c
@ -1,6 +1,6 @@
|
||||
// Test that we can compile .c files as C++ and vice versa
|
||||
// RUN: llvmc -x c++ %s -x c %p/../test_data/false.cpp -x lisp -x whatnot -x none %p/../test_data/false2.cpp -o %t
|
||||
// RUN: ./%t | grep hello
|
||||
// RUN: %abs_tmp | grep hello
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Test that we can compile C++ code.
|
||||
// RUN: llvmc %s -o %t
|
||||
// RUN: ./%t | grep hello
|
||||
// RUN: %abs_tmp | grep hello
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Check that we can compile files of different types together.
|
||||
// RUN: llvmc %s %p/../test_data/together.c -o %t
|
||||
// RUN: ./%t | grep hello
|
||||
// RUN: %abs_tmp | grep hello
|
||||
|
||||
extern "C" void test();
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Check that we can compile helloworld
|
||||
* RUN: llvmc %s -o %t
|
||||
* RUN: ./%t | grep hello
|
||||
* RUN: %abs_tmp | grep hello
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Check that the -opt switch works.
|
||||
* RUN: llvmc %s -opt -o %t
|
||||
* RUN: ./%t | grep hello
|
||||
* RUN: %abs_tmp | grep hello
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Check that the 'sink' options work.
|
||||
* RUN: llvmc -v -Wall %s -o %t |& grep "Wall"
|
||||
* RUN: ./%t | grep hello
|
||||
* RUN: %abs_tmp | grep hello
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Check that -Wall works as intended
|
||||
* RUN: llvmc -Wall %s -o %t
|
||||
* RUN: ./%t | grep hello
|
||||
* RUN: %abs_tmp | grep hello
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Test that we can compile Objective-C++ code.
|
||||
// RUN: llvmc %s -o %t
|
||||
// RUN: ./%t | grep hello
|
||||
// RUN: %abs_tmp | grep hello
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Check that we can compile helloworld
|
||||
* RUN: llvmc %s -o %t
|
||||
* RUN: ./%t | grep hello
|
||||
* RUN: %abs_tmp | grep hello
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
Loading…
Reference in New Issue
Block a user