summaryrefslogtreecommitdiff
path: root/test/Driver/print-empty-prog-name.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/print-empty-prog-name.c')
-rw-r--r--test/Driver/print-empty-prog-name.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Driver/print-empty-prog-name.c b/test/Driver/print-empty-prog-name.c
new file mode 100644
index 0000000000000..e01715f3b0b8e
--- /dev/null
+++ b/test/Driver/print-empty-prog-name.c
@@ -0,0 +1,5 @@
+// Test that -print-prog-name= correctly returns an empty string
+
+// RUN: %clang -print-prog-name= 2>&1 | FileCheck %s
+// CHECK-NOT:{{.+}}
+