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

Side by Side Diff: unittests/Bitcode/NaClParseTypesTest.cpp

Issue 986453002: Additional clean ups on errors in bitcode parsing. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Fix comment. Created 5 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 unified diff | Download patch
« no previous file with comments | « unittests/Bitcode/NaClParseInstsTest.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
1 //===- llvm/unittest/Bitcode/NaClParseTypesTest.cpp ---------------------===// 1 //===- llvm/unittest/Bitcode/NaClParseTypesTest.cpp ---------------------===//
2 // Tests parser for PNaCl bitcode. 2 // Tests parser for PNaCl bitcode.
3 // 3 //
4 // The LLVM Compiler Infrastructure 4 // The LLVM Compiler Infrastructure
5 // 5 //
6 // This file is distributed under the University of Illinois Open Source 6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details. 7 // License. See LICENSE.TXT for details.
8 // 8 //
9 //===----------------------------------------------------------------------===// 9 //===----------------------------------------------------------------------===//
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 AddSelfReference, array_lengthof(AddSelfReference), 71 AddSelfReference, array_lengthof(AddSelfReference),
72 false)); 72 false));
73 EXPECT_EQ( 73 EXPECT_EQ(
74 "Error: Record doesn't have expected size or structure\n", 74 "Error: Record doesn't have expected size or structure\n",
75 Munger.getTestResults()); 75 Munger.getTestResults());
76 EXPECT_FALSE(Munger.runTest( 76 EXPECT_FALSE(Munger.runTest(
77 "@t1 = float(1)", 77 "@t1 = float(1)",
78 AddSelfReference, array_lengthof(AddSelfReference), 78 AddSelfReference, array_lengthof(AddSelfReference),
79 true)); 79 true));
80 EXPECT_EQ( 80 EXPECT_EQ(
81 "Error: (40:2) Invalid TYPE_CODE_FLOAT record\n" 81 "Error(40:2): Invalid TYPE_CODE_FLOAT record\n"
82 "Error: Record doesn't have expected size or structure\n", 82 "Error: Record doesn't have expected size or structure\n",
83 Munger.getTestResults()); 83 Munger.getTestResults());
84 } 84 }
85 85
86 } // end of anonamous namespace. 86 } // end of anonamous namespace.
OLDNEW
« no previous file with comments | « unittests/Bitcode/NaClParseInstsTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698