1*b8aae540SGreg Fitzgerald // RUN: %clangxx -fsanitize=signed-integer-overflow %s -o %t && %run %t 2>&1 | FileCheck %s 2ba869e79SAlexey Samsonov 3ba869e79SAlexey Samsonov #include <stdint.h> 4ba869e79SAlexey Samsonov main()5ba869e79SAlexey Samsonovint main() { 6ba869e79SAlexey Samsonov unsigned(0x80000000) / -1; 7ba869e79SAlexey Samsonov 8ba869e79SAlexey Samsonov // CHECK: div-overflow.cpp:9:23: runtime error: division of -2147483648 by -1 cannot be represented in type 'int' 9ba869e79SAlexey Samsonov int32_t(0x80000000) / -1; 10ba869e79SAlexey Samsonov } 11