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

Side by Side Diff: unittest/IceParseInstsTest.cpp

Issue 1217433002: Subzero: Enable errors for unused parameters. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 5 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 | « unittest/BitcodeMunge.h ('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 //===- unittest/IceParseInstsTest.cpp - test instruction errors -----------===// 1 //===- unittest/IceParseInstsTest.cpp - test instruction errors -----------===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 9
10 #include <string> 10 #include <string>
11 11
12 #pragma clang diagnostic push
13 #pragma clang diagnostic ignored "-Wunused-parameter"
12 #include "llvm/ADT/STLExtras.h" 14 #include "llvm/ADT/STLExtras.h"
13 #include "llvm/Bitcode/NaCl/NaClBitcodeParser.h" 15 #include "llvm/Bitcode/NaCl/NaClBitcodeParser.h"
14 #include "llvm/Bitcode/NaCl/NaClLLVMBitCodes.h" 16 #include "llvm/Bitcode/NaCl/NaClLLVMBitCodes.h"
17 #pragma clang diagnostic pop
15 18
16 #include "BitcodeMunge.h" 19 #include "BitcodeMunge.h"
17 #include "unittests/Bitcode/NaClMungeTest.h" 20 #include "unittests/Bitcode/NaClMungeTest.h"
jvoung (off chromium) 2015/06/26 16:11:14 Btw, this "unittests/..." one is also part of the
Jim Stichnoth 2015/06/27 13:35:33 Ah, OK. I actually only applied the pragmas where
18 21
19 using namespace llvm; 22 using namespace llvm;
20 using namespace naclmungetest; 23 using namespace naclmungetest;
21 24
22 namespace { 25 namespace {
23 26
24 // The ParseError constant is passed to the BitcodeMunger to prevent translation 27 // The ParseError constant is passed to the BitcodeMunger to prevent translation
25 // when we expect a Parse error. 28 // when we expect a Parse error.
26 constexpr bool ParseError = true; 29 constexpr bool ParseError = true;
27 30
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 EXPECT_EQ("Error(62:4): Invalid function record: <24 2 1 31>\n", 395 EXPECT_EQ("Error(62:4): Invalid function record: <24 2 1 31>\n",
393 Munger.getTestResults()); 396 Munger.getTestResults());
394 EXPECT_FALSE(DumpMunger.runTestForAssembly(ARRAY(Align30))); 397 EXPECT_FALSE(DumpMunger.runTestForAssembly(ARRAY(Align30)));
395 EXPECT_EQ( 398 EXPECT_EQ(
396 " store float %p1, float* %p0, align 0;\n" 399 " store float %p1, float* %p0, align 0;\n"
397 "Error(62:4): store: Illegal alignment for float. Expects: 1 or 4\n", 400 "Error(62:4): store: Illegal alignment for float. Expects: 1 or 4\n",
398 DumpMunger.getLinesWithSubstring("store")); 401 DumpMunger.getLinesWithSubstring("store"));
399 } 402 }
400 403
401 } // end of anonymous namespace 404 } // end of anonymous namespace
OLDNEW
« no previous file with comments | « unittest/BitcodeMunge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698