// Step 1948: CompilerPhaseSpec + CompilerPhaseRegistry // // t1: registerPhase and phaseCount // t2: getPhase returns correct spec; throws on missing // t3: hasPhase correct // t4: phaseIdsSorted returns ids in order field order // t5: phasesForLanguage filters correctly #include "CompilerPhaseSpec.h" #include namespace ws = whetstone; static int p=0,f=0; #define T(n) { std::cout<<" "<<#n<<"... "; } #define P() { std::cout<<"PASS\n"; ++p; } #define F(m) { std::cout<<"FAIL: "< 0 ? 1 : 0; }