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

Side by Side Diff: tests_lit/parse_errs/duplicate-fcn-name.test

Issue 1347683003: Check that symbol names in symbol tables are unique. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit. Created 5 years, 3 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 | « tests_lit/parse_errs/Inputs/duplicate-fcn-name.tbc ('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 if we detect duplicate names in a symbol table.
2
3 ; REQUIRES: no_minimal_build
4
5 ; RUN: not %pnacl_sz -bitcode-as-text %p/Inputs/duplicate-fcn-name.tbc \
6 ; RUN: -bitcode-format=pnacl -notranslate -no-ir-gen -build-on-read 2>&1 \
7 ; RUN: | FileCheck %s
8
9 ; CHECK: Module valuesymtab defines duplicate value name: 'f'
10
11 ; RUN: pnacl-bcfuzz -bitcode-as-text %p/Inputs/duplicate-fcn-name.tbc -output - \
12 ; RUN: | pnacl-bcdis -no-records | FileCheck -check-prefix=ASM %s
13
14 ; ASM: module { // BlockID = 8
15 ; ASM: version 1;
16 ; ASM: types { // BlockID = 17
17 ; ASM: count 2;
18 ; ASM: @t0 = void;
19 ; ASM: @t1 = void ();
20 ; ASM: }
21 ; ASM: define external void @f0();
22 ; ASM: define external void @f1();
23 ; ASM: globals { // BlockID = 19
24 ; ASM: count 0;
25 ; ASM: }
26 ; ASM: valuesymtab { // BlockID = 14
27 ; ASM: @f0 : "f";
28 ; ASM: @f1 : "f";
29 ; ASM: }
30 ; ASM: function void @f0() { // BlockID = 12
31 ; ASM: blocks 1;
32 ; ASM: %b0:
33 ; ASM: ret void;
34 ; ASM: }
35 ; ASM: function void @f1() { // BlockID = 12
36 ; ASM: blocks 1;
37 ; ASM: %b0:
38 ; ASM: ret void;
39 ; ASM: }
40 ; ASM: }
OLDNEW
« no previous file with comments | « tests_lit/parse_errs/Inputs/duplicate-fcn-name.tbc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698