Mercurial > projects > dstress
view run/o/odd_bug_11_C.d @ 1597:8b9d4d2f925a
Fix typos in complex tests. See D bug 614.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 16:53:58 +0200 |
parents | 36bedfa079e6 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Christopher Pellng <chris@inventivedingo.com> // @date@ 2006-12-05 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=654 // @desc@ [Issue 654] Const string member using implicit type inference gives garbage in certain situation module dstress.run.o.odd_bug_11_C; class A { static MY_CONST_STRING = "hello"; this(string cmp){ if(cmp != MY_CONST_STRING){ assert(0); } } } void dummy(...){} void never_called() { dummy("%s", A.MY_CONST_STRING); } int main() { A a = new A("hello"); return 0; }