]> granicus.if.org Git - clang/commitdiff
test/Driver: Check that @ arguments that aren't files are handled
authorJustin Bogner <mail@justinbogner.com>
Fri, 6 Dec 2013 22:57:13 +0000 (22:57 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 6 Dec 2013 22:57:13 +0000 (22:57 +0000)
This tests the bug fix in llvm r196620.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196621 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/at_file_missing.c [new file with mode: 0644]

diff --git a/test/Driver/at_file_missing.c b/test/Driver/at_file_missing.c
new file mode 100644 (file)
index 0000000..0189a8b
--- /dev/null
@@ -0,0 +1,7 @@
+// Make sure that arguments that begin with @ are left as is in the argument
+// stream, and also that @file arguments continue to be processed.
+
+// RUN: echo "%s -D FOO" > %t.args
+// RUN: %clang -rpath @executable_path/../lib @%t.args -### 2>&1 | FileCheck %s
+// CHECK: "-D" "FOO"
+// CHECK: "-rpath" "@executable_path/../lib"