summaryrefslogtreecommitdiff
path: root/test/ubsan/TestCases/Integer/summary.cpp
blob: d6fecd2abd3303f2694bd341095d7a68a2333f22 (plain)
1
2
3
4
5
6
7
8
9
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: runtime-error {{.*}}summary.cpp:[[@LINE-1]]
  return 0;
}