[PATCH] Initial contribution of llgo, a Go frontend

Sean Silva chisophugis at gmail.com
Wed Nov 19 14:28:58 PST 2014


================
Comment at: tools/llgo/test/execution/assignment/namedresult.go:1-4
@@ +1,5 @@
+// RUN: llgo -o %t %s
+// RUN: %t > %t1 2>&1
+// RUN: go run %s > %t2 2>&1
+// RUN: diff -u %t1 %t2
+
----------------
If I'm understanding this use of `go run` correctly, this seems like a very strange testing strategy for the LLVM project.

It would be as though clang's tests used gcc or msvc as a testing tool and only tested the output of compiled programs.

Is there a reason you haven't organized your testing like clang? I.e. verifying the compiler's IRGen and diagnostics?

http://reviews.llvm.org/D6327






More information about the llvm-commits mailing list