shadowm

Untitled

Mar 15th, 2014
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. shadowm@nanacore:~% cat test.cpp
  2. #include <iostream>
  3.  
  4. #define GCC_VERSION (__GNUC__ * 10000 \
  5. + __GNUC_MINOR__ * 100 \
  6. + __GNUC_PATCHLEVEL__)
  7.  
  8. int main(int, char**)
  9. {
  10. std::cerr << GCC_VERSION << '\n';
  11. }
  12.  
  13. shadowm@nanacore:~% clang++ test.cpp -o test
  14. shadowm@nanacore:~% ./test
  15. 40201
Advertisement
Add Comment
Please, Sign In to add comment