diff options
| author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2014-04-29 20:19:13 +0000 |
|---|---|---|
| committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2014-04-29 20:19:13 +0000 |
| commit | e653811af2e81ee8f719096b1fa3073b78407656 (patch) | |
| tree | 1b6976d0ce3fa1d3c42f0b6d612659a3a07ba895 /clang/test/Frontend | |
| parent | a12dae37d5ad6bb9ac4b40daf8975a7cd758fe2e (diff) | |
| download | bcm5719-llvm-e653811af2e81ee8f719096b1fa3073b78407656.tar.gz bcm5719-llvm-e653811af2e81ee8f719096b1fa3073b78407656.zip | |
Add test case for revision 207575 to verify that on Windows, clang doesn't
crash with an assertion failure when 'nul' is passed in input.
Modified clang/test/lit.py to add feature 'system-windows' if
`platform.system()` returns 'Windows'.
llvm-svn: 207576
Diffstat (limited to 'clang/test/Frontend')
| -rw-r--r-- | clang/test/Frontend/windows-nul.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Frontend/windows-nul.c b/clang/test/Frontend/windows-nul.c new file mode 100644 index 00000000000..9a7e3576290 --- /dev/null +++ b/clang/test/Frontend/windows-nul.c @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -dM -E nul -o /dev/null + +// 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. + |

