aboutsummaryrefslogtreecommitdiff
path: root/test/ubsan/TestCases/Integer/summary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/ubsan/TestCases/Integer/summary.cpp')
-rw-r--r--test/ubsan/TestCases/Integer/summary.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ubsan/TestCases/Integer/summary.cpp b/test/ubsan/TestCases/Integer/summary.cpp
new file mode 100644
index 000000000000..6e9aec63ca74
--- /dev/null
+++ b/test/ubsan/TestCases/Integer/summary.cpp
@@ -0,0 +1,10 @@
+// RUN: %clangxx -fsanitize=integer %s -o %t && %t 2>&1 | FileCheck %s
+// REQUIRES: ubsan-asan
+
+#include <stdint.h>
+
+int main() {
+ (void)(uint64_t(10000000000000000000ull) + uint64_t(9000000000000000000ull));
+ // CHECK: SUMMARY: AddressSanitizer: undefined-behavior {{.*}}summary.cpp:[[@LINE-1]]
+ return 0;
+}