Fix test inclusion when Effcee is absent
authorDavid Neto <dneto@google.com>
Tue, 6 Feb 2018 17:06:26 +0000 (12:06 -0500)
committerDavid Neto <dneto@google.com>
Tue, 6 Feb 2018 17:10:50 +0000 (12:10 -0500)
test/opt/type_manager_test.cpp

index b235db4..8832b75 100644 (file)
@@ -62,6 +62,8 @@ void Match(const std::string& original, ir::IRContext* context,
       << assembly;
 }
 
+#endif
+
 std::vector<std::unique_ptr<Type>> GenerateAllTypes() {
   // Types in this test case are only equal to themselves, nothing else.
   std::vector<std::unique_ptr<Type>> types;
@@ -168,8 +170,6 @@ std::vector<std::unique_ptr<Type>> GenerateAllTypes() {
   return types;
 }
 
-#endif
-
 TEST(TypeManager, TypeStrings) {
   const std::string text = R"(
     OpTypeForwardPointer !20 !2 ; id for %p is 20, Uniform is 2