Last active
October 9, 2015 01:27
-
-
Save jonathan-beard/25fc0a6d48b863fc0ab1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* vim: set shiftwidth=3 set tabstop=3 set number set ai set aw set expandtab : */ | |
/* you need to have 'set modeline' within your vimrc for the above to work */ | |
#include <cstdint> | |
#include <iostream> | |
#include <cstdlib> | |
struct foo <% std::int32_t k; %>; | |
static std::int32_t count = 0; | |
bool operator not_eq ( foo a, int b ) | |
<% | |
std::cerr << "foo: " << count++ << "\n"; | |
return( true ); | |
%> | |
std::int32_t | |
main( std::int32_t argc, char *argv<::> ) | |
<% | |
foo f; | |
__attribute__(( __unused__ )) auto a( f != 5 ); | |
__attribute__(( __unused__ )) auto b( f not_eq 5 ); | |
return( EXIT_SUCCESS ); | |
%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment