summaryrefslogtreecommitdiff
path: root/test/Frontend/windows-nul.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Frontend/windows-nul.c')
-rw-r--r--test/Frontend/windows-nul.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Frontend/windows-nul.c b/test/Frontend/windows-nul.c
new file mode 100644
index 0000000000000..9f1fc04151d60
--- /dev/null
+++ b/test/Frontend/windows-nul.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 nul
+
+// REQUIRES: system-windows
+
+// Verify that cc1 doesn't crash with an assertion failure
+// in MemoryBuffer.cpp due to an invalid file size reported
+// when the Windows 'nul' device is passed in input.
+