From: Nobuyoshi Nakada Date: 2006-12-20T23:50:58+09:00 Subject: Re: System V IPC in standard library? Hi, At Wed, 20 Dec 2006 10:22:12 +0900, Steven Jenkins wrote in [ruby-core:09752]: > I don't see that conftestval is used at all in have_type. But yes, > that's the idea. The test code has no side effects, so an aggressively > optimizing compiler can throw the whole thing away. (In this case, of > course, the desired side effect is an error.) I looked at autoconf > because I figured someone else would have encountered this problem > before. Their code returns values to the environment, so it can't be so > easily optimized away. I was forgetting fixing it at 26 Sep, therefore 1.8.5 still has the older test. The current test is: typedef #{type} conftest_type; static conftest_type conftestval[sizeof(conftest_type)?1:-1]; -- Nobu Nakada