./perl/test/codegen.cc

download original
#include <stdio.h>

template<bool bnValue>
void DoStupidPrint()
{
   if (bnValue) printf("Hallo Isch bin ein Berliner!");
}

int main()
{
   DoStupidPrint<true>();
   DoStupidPrint<false>();
   bool b = false;
   //DoStupidPrint<b>();
}

  
back to test

(C) 1998-2017 Olaf Klischat <olaf.klischat@gmail.com>