From 5b9327035b5cafdd5df107b2da57990f5790a289 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 19 Nov 2008 02:59:00 +0000 Subject: LLVMC2: Teach llvm_gcc_c tool about -include and -fsyntax-only. - Only focusing on llvm_gcc_c for now, eventually this needs to be refactored so it can be shared via all the gcc-like tools. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59582 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/LLVMC/include.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/LLVMC/include.c (limited to 'test/LLVMC/include.c') diff --git a/test/LLVMC/include.c b/test/LLVMC/include.c new file mode 100644 index 0000000..eeb6ca6 --- /dev/null +++ b/test/LLVMC/include.c @@ -0,0 +1,9 @@ +/* + * Check that the 'include' options work. + * RUN: echo "int x;\n" > %t1.inc + * RUN: llvmc2 -include %t1.inc -fsyntax-only %s + */ + +int f0(void) { + return x; +} -- cgit v1.1