summaryrefslogtreecommitdiff
path: root/test/Modules/signal.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/signal.m')
-rw-r--r--test/Modules/signal.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Modules/signal.m b/test/Modules/signal.m
new file mode 100644
index 0000000000000..30059e9351138
--- /dev/null
+++ b/test/Modules/signal.m
@@ -0,0 +1,11 @@
+// REQUIRES: shell
+// RUN: rm -rf %t
+
+// Crash building module.
+// RUN: not --crash %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs %s
+
+// The dead symlink is still around, but the underlying lock file is gone.
+// RUN: find %t -name "crash-*.pcm.lock" | count 1
+// RUN: find %t -name "crash-*.pcm.lock-*" | count 0
+
+@import crash;