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

Side by Side 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, 8 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 unified diff | Download patch
« no previous file with comments | « src/PNaClTranslator.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ; Test that we report a bug at the same place, independent of a parallel parse.
2
3 ; REQUIRES: no_minimal_build
4
5 ; RUN: %p2i --expect-fail -i %s --args -threads=0 -parse-parallel=0 \
6 ; RUN: -allow-externally-defined-symbols | FileCheck %s
7
8 ; RUN: %p2i --expect-fail -i %s --args -threads=1 -parse-parallel=1 \
9 ; RUN: -allow-externally-defined-symbols | FileCheck %s
10
11 declare i32 @f();
12
13 declare i64 @g();
14
15 define void @Test(i32 %ifcn) {
16 entry:
17 %fcn = inttoptr i32 %ifcn to i1()*
18 %v = call i1 %fcn()
19
20 ; CHECK: Error(222:6): Return type of function is invalid: i1
21
22 ret void
23 }
OLDNEW
« 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