diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-11-19 02:59:00 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-11-19 02:59:00 +0000 |
commit | 5b9327035b5cafdd5df107b2da57990f5790a289 (patch) | |
tree | 60dfd846ebbecdae2072343314d5a4540b6eaebb /test/LLVMC/include.c | |
parent | 2960c2d52ebc38b88134767f17227a7dce26661d (diff) | |
download | external_llvm-5b9327035b5cafdd5df107b2da57990f5790a289.zip external_llvm-5b9327035b5cafdd5df107b2da57990f5790a289.tar.gz external_llvm-5b9327035b5cafdd5df107b2da57990f5790a289.tar.bz2 |
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
Diffstat (limited to 'test/LLVMC/include.c')
-rw-r--r-- | test/LLVMC/include.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; +} |