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 | 5c98d824f681a5d531e619309faefbfa84e230fe (patch) | |
tree | 8cff2a794bd09524366b0e66aa8583cfff3a029a /test/LLVMC | |
parent | ecb977e64f5dbe40b35184124f9ac4b0faaea114 (diff) | |
download | llvm-5c98d824f681a5d531e619309faefbfa84e230fe.tar.gz llvm-5c98d824f681a5d531e619309faefbfa84e230fe.tar.bz2 llvm-5c98d824f681a5d531e619309faefbfa84e230fe.tar.xz |
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/LLVMC')
-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 0000000000..9af9bfba31 --- /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; +} |