summaryrefslogtreecommitdiff
path: root/lib/ubsan/lit_tests/TestCases/Misc/deduplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ubsan/lit_tests/TestCases/Misc/deduplication.cpp')
-rw-r--r--lib/ubsan/lit_tests/TestCases/Misc/deduplication.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/ubsan/lit_tests/TestCases/Misc/deduplication.cpp b/lib/ubsan/lit_tests/TestCases/Misc/deduplication.cpp
deleted file mode 100644
index d325bf6dd8997..0000000000000
--- a/lib/ubsan/lit_tests/TestCases/Misc/deduplication.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// RUN: %clangxx -fsanitize=undefined %s -o %t && %t 2>&1 | FileCheck %s
-// Verify deduplication works by ensuring only one diag is emitted.
-#include <limits.h>
-#include <stdio.h>
-
-void overflow() {
- int i = INT_MIN;
- --i;
-}
-
-int main() {
- // CHECK: Start
- fprintf(stderr, "Start\n");
-
- // CHECK: runtime error
- // CHECK-NOT: runtime error
- // CHECK-NOT: runtime error
- overflow();
- overflow();
- overflow();
-
- // CHECK: End
- fprintf(stderr, "End\n");
- return 0;
-}