const_block.cpp 428 B

123456789101112131415161718
  1. // Copyright (C) 2009-2012 Lorenzo Caminiti
  2. // Distributed under the Boost Software License, Version 1.0
  3. // (see accompanying file LICENSE_1_0.txt or a copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. // Home at http://www.boost.org/libs/local_function
  6. #include "const_block.hpp"
  7. #include <cassert>
  8. int main(void) {
  9. int x = 0, y = 0;
  10. CONST_BLOCK(x, y) {
  11. assert(x == y);
  12. } CONST_BLOCK_END
  13. return 0;
  14. }