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

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

Issue 807643002: Don't allow instructions/globals to use alignment > 2**29. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Fix nits. Created 6 years 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 AddSelfReference, array_lengthof(AddSelfReference), 67 AddSelfReference, array_lengthof(AddSelfReference),
68 false)); 68 false));
69 EXPECT_EQ( 69 EXPECT_EQ(
70 "Error: Record doesn't have expected size or structure\n", 70 "Error: Record doesn't have expected size or structure\n",
71 Munger.getTestResults()); 71 Munger.getTestResults());
72 EXPECT_FALSE(Munger.runTest( 72 EXPECT_FALSE(Munger.runTest(
73 "@t1 = float(1)", 73 "@t1 = float(1)",
74 AddSelfReference, array_lengthof(AddSelfReference), 74 AddSelfReference, array_lengthof(AddSelfReference),
75 true)); 75 true));
76 EXPECT_EQ( 76 EXPECT_EQ(
77 "Error: Invalid TYPE_CODE_FLOAT record\n" 77 "Error: (24:2) Invalid TYPE_CODE_FLOAT record\n"
78 "Error: Record doesn't have expected size or structure\n", 78 "Error: Record doesn't have expected size or structure\n",
79 Munger.getTestResults()); 79 Munger.getTestResults());
80 } 80 }
81 81
82 } // end of anonamous namespace. 82 } // end of anonamous namespace.
OLDNEW
« unittests/Bitcode/NaClParseInstsTest.cpp ('K') | « unittests/Bitcode/NaClParseInstsTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698