summaryrefslogtreecommitdiff
path: root/test/LLVMC
diff options
context:
space:
mode:
Diffstat (limited to 'test/LLVMC')
-rw-r--r--test/LLVMC/emit-llvm.c4
-rw-r--r--test/LLVMC/false.c14
-rw-r--r--test/LLVMC/hello.c12
-rw-r--r--test/LLVMC/hello.cpp8
-rw-r--r--test/LLVMC/hello.m12
-rw-r--r--test/LLVMC/hello.mm8
-rw-r--r--test/LLVMC/include.c9
-rw-r--r--test/LLVMC/llvmc.exp27
-rw-r--r--test/LLVMC/opt-test.c12
-rw-r--r--test/LLVMC/sink.c12
-rw-r--r--test/LLVMC/together.cpp9
-rw-r--r--test/LLVMC/wall.c12
12 files changed, 0 insertions, 139 deletions
diff --git a/test/LLVMC/emit-llvm.c b/test/LLVMC/emit-llvm.c
deleted file mode 100644
index 38bbba6f0afc7..0000000000000
--- a/test/LLVMC/emit-llvm.c
+++ /dev/null
@@ -1,4 +0,0 @@
-// RUN: llvmc -c -emit-llvm -o - %s | llvm-dis | grep "@f0()" | count 1
-
-int f0(void) {
-}
diff --git a/test/LLVMC/false.c b/test/LLVMC/false.c
deleted file mode 100644
index eb2883d699e54..0000000000000
--- a/test/LLVMC/false.c
+++ /dev/null
@@ -1,14 +0,0 @@
-// 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
-
-#include <iostream>
-
-extern "C" void test();
-extern std::string test2();
-
-int main() {
- std::cout << "h";
- test();
- std::cout << test2() << '\n';
-}
diff --git a/test/LLVMC/hello.c b/test/LLVMC/hello.c
deleted file mode 100644
index 1cda9c3a3405e..0000000000000
--- a/test/LLVMC/hello.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * Check that we can compile helloworld
- * RUN: llvmc %s -o %t
- * RUN: ./%t | grep hello
- */
-
-#include <stdio.h>
-
-int main() {
- printf("hello\n");
- return 0;
-}
diff --git a/test/LLVMC/hello.cpp b/test/LLVMC/hello.cpp
deleted file mode 100644
index 27c89d66fa73f..0000000000000
--- a/test/LLVMC/hello.cpp
+++ /dev/null
@@ -1,8 +0,0 @@
-// Test that we can compile C++ code.
-// RUN: llvmc %s -o %t
-// RUN: ./%t | grep hello
-#include <iostream>
-
-int main() {
- std::cout << "hello" << '\n';
-}
diff --git a/test/LLVMC/hello.m b/test/LLVMC/hello.m
deleted file mode 100644
index 1cda9c3a3405e..0000000000000
--- a/test/LLVMC/hello.m
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * Check that we can compile helloworld
- * RUN: llvmc %s -o %t
- * RUN: ./%t | grep hello
- */
-
-#include <stdio.h>
-
-int main() {
- printf("hello\n");
- return 0;
-}
diff --git a/test/LLVMC/hello.mm b/test/LLVMC/hello.mm
deleted file mode 100644
index ff82e4af518d9..0000000000000
--- a/test/LLVMC/hello.mm
+++ /dev/null
@@ -1,8 +0,0 @@
-// Test that we can compile Objective-C++ code.
-// RUN: llvmc %s -o %t
-// RUN: ./%t | grep hello
-#include <iostream>
-
-int main() {
- std::cout << "hello" << '\n';
-}
diff --git a/test/LLVMC/include.c b/test/LLVMC/include.c
deleted file mode 100644
index 07ae761d2c881..0000000000000
--- a/test/LLVMC/include.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
- * Check that the 'include' options work.
- * RUN: echo "int x;\n" > %t1.inc
- * RUN: llvmc -include %t1.inc -fsyntax-only %s
- */
-
-int f0(void) {
- return x;
-}
diff --git a/test/LLVMC/llvmc.exp b/test/LLVMC/llvmc.exp
deleted file mode 100644
index fd5a0466ad8ba..0000000000000
--- a/test/LLVMC/llvmc.exp
+++ /dev/null
@@ -1,27 +0,0 @@
-load_lib llvm.exp
-
-# 'false.c' is really C++, so it must be treated differently.
-set special_file "$srcdir/$subdir/false.c"
-
-if [ llvm_gcc_supports c ] then {
- # tcl seems to lack 'filter' which would've made this easier...
- set temp [glob -nocomplain $srcdir/$subdir/*.{c}]
- set c_files [list]
- foreach f $temp { if {$f != $special_file} {lappend c_files $f}}
-
- RunLLVMTests [lsort $c_files]
-}
-
-if [ llvm_gcc_supports c++ ] then {
- RunLLVMTests [lsort [concat [glob -nocomplain $srcdir/$subdir/*.{cpp}] $special_file]]
-}
-
-if [ llvm_gcc_supports objc ] then {
- RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{m}]]
-}
-
-if [ llvm_gcc_supports obj-c++ ] then {
- RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{mm}]]
-}
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]]
diff --git a/test/LLVMC/opt-test.c b/test/LLVMC/opt-test.c
deleted file mode 100644
index ed2df52fed7c5..0000000000000
--- a/test/LLVMC/opt-test.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * Check that the -opt switch works.
- * RUN: llvmc %s -opt -o %t
- * RUN: ./%t | grep hello
- */
-
-#include <stdio.h>
-
-int main() {
- printf("hello\n");
- return 0;
-}
diff --git a/test/LLVMC/sink.c b/test/LLVMC/sink.c
deleted file mode 100644
index 3edbf78112e6d..0000000000000
--- a/test/LLVMC/sink.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * Check that the 'sink' options work.
- * RUN: llvmc -v -Wall %s -o %t |& grep "Wall"
- * RUN: ./%t | grep hello
- */
-
-#include <stdio.h>
-
-int main() {
- printf("hello\n");
- return 0;
-}
diff --git a/test/LLVMC/together.cpp b/test/LLVMC/together.cpp
deleted file mode 100644
index b07250e9d0b3e..0000000000000
--- a/test/LLVMC/together.cpp
+++ /dev/null
@@ -1,9 +0,0 @@
-// Check that we can compile files of different types together.
-// RUN: llvmc %s %p/test_data/together.c -o %t
-// RUN: ./%t | grep hello
-
-extern "C" void test();
-
-int main() {
- test();
-}
diff --git a/test/LLVMC/wall.c b/test/LLVMC/wall.c
deleted file mode 100644
index 2c72ea69929d0..0000000000000
--- a/test/LLVMC/wall.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * Check that -Wall works as intended
- * RUN: llvmc -Wall %s -o %t
- * RUN: ./%t | grep hello
- */
-
-#include <stdio.h>
-
-int main() {
- printf("hello\n");
- return 0;
-}