]> granicus.if.org Git - clang/commitdiff
Add speculative clang-interpreter test
authorAlp Toker <alp@nuanti.com>
Mon, 5 May 2014 06:22:21 +0000 (06:22 +0000)
committerAlp Toker <alp@nuanti.com>
Mon, 5 May 2014 06:22:21 +0000 (06:22 +0000)
Let's see how far this gets on the build servers. The application requires
native JIT and uses the C standard library, but hopefully we can get this
tested on at least some configurations.

Taking a lead from the clang-format tests, we'll just expect the executable to
get picked up from the build output path for now.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207950 91177308-0d34-0410-b5e6-96231b3b80d8

test/Misc/interpreter.c [new file with mode: 0644]

diff --git a/test/Misc/interpreter.c b/test/Misc/interpreter.c
new file mode 100644 (file)
index 0000000..42e1645
--- /dev/null
@@ -0,0 +1,10 @@
+// RUN: clang-interpreter %s | FileCheck %s
+// REQUIRES: native, examples
+
+int printf(const char *, ...);
+
+int main() {
+  // CHECK: {{Hello world!}}
+  printf("Hello world!\n");
+  return 0;
+}