title: Any way to create a compile time timebomb to guard test-code?
body: <p><em><strong>Problem Description:</strong></em></p>
  <p>As a <strong>single developer</strong> I've stumbled across this several times:<br />
  Sometimes on a project instead of choosing a cleaner approach it makes sense for efficiency reasons to just add some quick and dirty test-code within production code.</p>
  <h3>While it may sound like a dirty solution, please keep in mind, that I'm only talking about test-code that should be thrown away anyway, when I just want to quickly check something.</h3>
  <p>To be 100% sure to not forget to take this code out again I'd like to guard it by a <strong>compile time timebomb:</strong><br />
  What I mean is some piece of code, preprocessor code or anything basically that allows for compilation for a certain timespan, like half an hour for instance and then automatically results in a compiler error after the time (half an hour) is over. A compiler error would be great because it could directly mark the place of the test-code. (I could have it as the first line(s) within such a throwaway region for instance)</p>
  <p>So anything like &quot;throw an error if system time is bigger than this specific DateTime&quot; would be great.</p>
  <p>I looked into the preprocessor (not too familiar with it) but the directives #if and #error didn't seem like an option since #if expects a symbol instead of an expression.</p>
  <p><em><strong>Question:</strong></em></p>
  <p><strong>Is such a timebomb possible? Any idea on how to do that?<br />
  Or any idea on how to get the efficiency of quick and dirty test-code and be absolutely sure that taking it out again can't be forgotten?</strong><br />
  (A run time error would be easy but if a compile time error isn't possible I would need something of a similar quality to it.)</p>