// 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>
// 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() {
// 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();
/*
* Check that we can compile helloworld
* RUN: llvmc %s -o %t
- * RUN: ./%t | grep hello
+ * RUN: %abs_tmp | grep hello
*/
#include <stdio.h>
/*
* Check that the -opt switch works.
* RUN: llvmc %s -opt -o %t
- * RUN: ./%t | grep hello
+ * RUN: %abs_tmp | grep hello
*/
#include <stdio.h>
/*
* 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>
/*
* Check that -Wall works as intended
* RUN: llvmc -Wall %s -o %t
- * RUN: ./%t | grep hello
+ * RUN: %abs_tmp | grep hello
*/
#include <stdio.h>
// 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() {
/*
* Check that we can compile helloworld
* RUN: llvmc %s -o %t
- * RUN: ./%t | grep hello
+ * RUN: %abs_tmp | grep hello
*/
#include <stdio.h>