// This file is @generated by thens.rb
-#include <folly/wangle/test/Thens.h>
-
-#ifndef __clang__
// TODO: fails to compile with clang:dev. See task #4412111
+#ifndef __clang__
+
+#include <folly/wangle/test/Thens.h>
TEST(Future, thenVariants) {
SomeClass anObject;
#!/usr/bin/env ruby
+# ruby thens.rb > Thens.cpp
+
# An exercise in combinatorics.
# (ordinary/static function, member function, std::function, lambda)
# X
).map {|a| test(a)}.flatten
print <<EOF
-// This file is #{"@"}generated by thens.rb
+// This file is #{"@"}generated by thens.rb. Do not edit directly.
+
+// TODO: fails to compile with clang:dev. See task #4412111
+#ifndef __clang__
#include <folly/wangle/test/Thens.h>
#{tests.join("\n ")}
}
+
+#endif
EOF