diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-01-25 20:00:43 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-01-25 20:00:43 +0000 |
commit | ada4fa7978dc91a5e615af2ec29e12e3c6973c7f (patch) | |
tree | 1787f26aaed975d11ca8b1c8d1fad61f7ec0fe24 /test/Driver/unknown-arg.c | |
parent | 60a09dcc4656b82c7f96f8719a403a83247f6742 (diff) |
[driver] Do emit the diagnostics when CompilerInvocation::CreateFromArgs() fails.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148970 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/unknown-arg.c')
-rw-r--r-- | test/Driver/unknown-arg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Driver/unknown-arg.c b/test/Driver/unknown-arg.c new file mode 100644 index 0000000000..5d0f7afc51 --- /dev/null +++ b/test/Driver/unknown-arg.c @@ -0,0 +1,4 @@ +// RUN: not %clang_cc1 %s -cake-is-lie 2> %t.log +// RUN: FileCheck %s -input-file=%t.log + +// CHECK: unknown argument |