diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-04-17 01:54:00 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-17 01:54:00 +0000 |
| commit | 3f4a2c286e42611ef98a5af5a0d32c255c8e2ff7 (patch) | |
| tree | 06d72dca21273c303fd16b45f1a8092838490f08 /clang/test/Driver/qa_override.c | |
| parent | b96a1082a9910840c78568f7c04e743d4f0cae9b (diff) | |
| download | bcm5719-llvm-3f4a2c286e42611ef98a5af5a0d32c255c8e2ff7.tar.gz bcm5719-llvm-3f4a2c286e42611ef98a5af5a0d32c255c8e2ff7.zip | |
Support QA_OVERRIDE_GCC3_OPTIONS
- Cover your eyes...
- This is a simple but effective way to allow developers to build a
project with clang while manipulating the command line, without
having to edit the project itself.
llvm-svn: 69342
Diffstat (limited to 'clang/test/Driver/qa_override.c')
| -rw-r--r-- | clang/test/Driver/qa_override.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/qa_override.c b/clang/test/Driver/qa_override.c new file mode 100644 index 00000000000..0ff578c2a81 --- /dev/null +++ b/clang/test/Driver/qa_override.c @@ -0,0 +1,6 @@ +// RUN: env QA_OVERRIDE_GCC3_OPTIONS="+-Os +-Oz +-O +-O3 +-Oignore +a +b +c xb Xa Omagic ^-ccc-print-options " clang x -O2 b -O3 2> %t && +// RUN: grep -F 'Option 0 - Name: "<input>", Values: {"x"}' %t && +// RUN: grep -F 'Option 1 - Name: "-O", Values: {"ignore"}' %t && +// RUN: grep -F 'Option 2 - Name: "-O", Values: {"magic"}' %t && +// RUN: true + |

