Project

General

Profile

Bug #2461 ยป cppint64min.cpp

davshao, 11/28/2012 10:41 PM

 
#ifdef USECSTDINT
#include <cstdint>
#else
#include <stdint.h>
#endif
#include <iostream>

class TwoTypes {
public:
void printVal(double val) {
std::cout << "double val = " << val << "\n";
}
void printVal(int64_t val) {
std::cout << "int64_t val = " << val << "\n";
}

};

int main() {
TwoTypes t;
t.printVal(INT64_MIN);
return 0;
}
    (1-1/1)