summaryrefslogtreecommitdiff
path: root/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/rename.fail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/rename.fail.cpp')
-rw-r--r--test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/rename.fail.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/rename.fail.cpp b/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/rename.fail.cpp
new file mode 100644
index 0000000000000..deca9bf5b5519
--- /dev/null
+++ b/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/rename.fail.cpp
@@ -0,0 +1,15 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include <cstdio>
+
+int main() {
+ // rename is not available on systems without a global filesystem namespace.
+ std::rename("", "");
+}