00001 #include <cppunit/TestCaller.h> 00002 #include <cppunit/TestCase.h> 00003 #include <cppunit/TestSuite.h> 00004 00005 #include "cfg.h" 00006 00007 class CfgTest : public CppUnit::TestCase { 00008 protected: 00009 Cfg* m_prog; 00010 00011 public: 00012 CfgTest(std::string name) : CppUnit::TestCase (name) 00013 {} 00014 00015 virtual void registerTests(CppUnit::TestSuite* suite); 00016 00017 int countTestCases () const; 00018 00019 void setUp (); 00020 void tearDown (); 00021 00022 void testDominators (); 00023 void testSemiDominators (); 00024 void testPlacePhi (); 00025 void testPlacePhi2(); 00026 void testRenameVars(); 00027 }; 00028