summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/test/Driver/at_file_missing.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Driver/at_file_missing.c b/clang/test/Driver/at_file_missing.c
new file mode 100644
index 00000000000..0189a8bb757
--- /dev/null
+++ b/clang/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"
OpenPOWER on IntegriCloud