diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-12 16:33:06 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-12 16:33:06 +0000 |
commit | 4019e95e3e4f6bfc3f6c28f9595c8dcf64960673 (patch) | |
tree | 8cff2a794bd09524366b0e66aa8583cfff3a029a /test | |
parent | ba40cc2c9b263850fff63b3a7c4f3d12d8286b61 (diff) | |
download | external_llvm-4019e95e3e4f6bfc3f6c28f9595c8dcf64960673.zip external_llvm-4019e95e3e4f6bfc3f6c28f9595c8dcf64960673.tar.gz external_llvm-4019e95e3e4f6bfc3f6c28f9595c8dcf64960673.tar.bz2 |
Filter option names to escape symbols not allowed as C++ identifiers.
Makes it possible to use options with names like "Wa,".
Also fixes the -Wall option handling as a side-effect.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/LLVMC/wall.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/LLVMC/wall.c b/test/LLVMC/wall.c new file mode 100644 index 0000000..9af9bfb --- /dev/null +++ b/test/LLVMC/wall.c @@ -0,0 +1,12 @@ +/* + * Check that -Wall works as intended + * RUN: llvmc2 -Wall %s -o %t + * RUN: ./%t | grep hello + */ + +#include <stdio.h> + +int main() { + printf("hello\n"); + return 0; +} |