blob: 21f537b92767e7617fda6a376d2775aff65ce203 [file] [log] [blame]
Stephen Hines6d186232014-11-26 17:56:19 -08001// RUN: %clangxx -fsanitize=integer %s -o %t && %t 2>&1 | FileCheck %s
2// REQUIRES: ubsan-asan
3
4#include <stdint.h>
5
6int main() {
7 (void)(uint64_t(10000000000000000000ull) + uint64_t(9000000000000000000ull));
Pirama Arumuga Nainar7c915052015-04-08 08:58:29 -07008 // CHECK: SUMMARY: AddressSanitizer: undefined-behavior {{.*}}summary.cpp:[[@LINE-1]]:44
Stephen Hines6d186232014-11-26 17:56:19 -08009 return 0;
10}