Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Unified Diff: tests_lit/parse_errs/parallel.ll

Issue 1848313003: Fix error reporting for parallel parsed function blocks. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/PNaClTranslator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/parse_errs/parallel.ll
diff --git a/tests_lit/parse_errs/parallel.ll b/tests_lit/parse_errs/parallel.ll
new file mode 100644
index 0000000000000000000000000000000000000000..6b1ba99d6785bf36f6032e99fd375bdc021bd655
--- /dev/null
+++ b/tests_lit/parse_errs/parallel.ll
@@ -0,0 +1,23 @@
+; Test that we report a bug at the same place, independent of a parallel parse.
+
+; REQUIRES: no_minimal_build
+
+; RUN: %p2i --expect-fail -i %s --args -threads=0 -parse-parallel=0 \
+; RUN: -allow-externally-defined-symbols | FileCheck %s
+
+; RUN: %p2i --expect-fail -i %s --args -threads=1 -parse-parallel=1 \
+; RUN: -allow-externally-defined-symbols | FileCheck %s
+
+declare i32 @f();
+
+declare i64 @g();
+
+define void @Test(i32 %ifcn) {
+entry:
+ %fcn = inttoptr i32 %ifcn to i1()*
+ %v = call i1 %fcn()
+
+; CHECK: Error(222:6): Return type of function is invalid: i1
+
+ ret void
+}
« no previous file with comments | « src/PNaClTranslator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698