Skip to content

Instantly share code, notes, and snippets.

@MasazI
Created May 19, 2015 14:30
Show Gist options
  • Select an option

  • Save MasazI/95a7882cbb0066200002 to your computer and use it in GitHub Desktop.

Select an option

Save MasazI/95a7882cbb0066200002 to your computer and use it in GitHub Desktop.
assert.cpp
//
// assert.cpp
// CplusplusPractice
//
// Created by masai on 2015/05/19.
// Copyright (c) 2015年 masai. All rights reserved.
//
#include <iostream>
#include <limits>
#include <cstdlib>
#include <assert.h>
typedef long long_type;
long base();
int main(int argc, const char * argv[]) {
long v = 32;
assert(v * base() > std::numeric_limits<long_type>::max());
return 0;
}
long base(){
return 200;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment