summaryrefslogtreecommitdiff
path: root/test/Driver/at_file_missing.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/at_file_missing.c')
-rw-r--r--test/Driver/at_file_missing.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Driver/at_file_missing.c b/test/Driver/at_file_missing.c
new file mode 100644
index 000000000000..0189a8bb7571
--- /dev/null
+++ b/test/Driver/at_file_missing.c
@@ -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"