1 /** 2 * @file only_with_ansi.t.h 3 * This test only runs correctly if -ansi was supplied as a g++ switch. 4 * 5 * @author Gašper Ažman (GA), gasper.azman@gmail.com 6 * @version 1.0 7 * @since 2009-02-11 06:26:59 PM 8 */ 9 10 #include <cxxtest/TestSuite.h> 11 12 class TestAnsi : public CxxTest::TestSuite 13 { 14 public: testAnsiPresent()15 void testAnsiPresent() { 16 #ifdef __STRICT_ANSI__ 17 TS_ASSERT(true); 18 #else 19 TS_ASSERT(false); 20 #endif 21 } 22 }; 23