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

Side by Side Diff: unittest/IceParseInstsTest.cpp

Issue 1221643012: Subzero: Add -Wshadow to the build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes 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
« src/IceInst.h ('K') | « unittest/IceELFSectionTest.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 //===- 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 12 #pragma clang diagnostic push
13 #pragma clang diagnostic ignored "-Wunused-parameter" 13 #pragma clang diagnostic ignored "-Wunused-parameter"
14 #pragma clang diagnostic ignored "-Wshadow"
14 #include "llvm/ADT/STLExtras.h" 15 #include "llvm/ADT/STLExtras.h"
15 #include "llvm/Bitcode/NaCl/NaClBitcodeParser.h" 16 #include "llvm/Bitcode/NaCl/NaClBitcodeParser.h"
16 #include "llvm/Bitcode/NaCl/NaClLLVMBitCodes.h" 17 #include "llvm/Bitcode/NaCl/NaClLLVMBitCodes.h"
17 #pragma clang diagnostic pop 18 #pragma clang diagnostic pop
18 19
19 #include "BitcodeMunge.h" 20 #include "BitcodeMunge.h"
20 #include "unittests/Bitcode/NaClMungeTest.h" 21 #include "unittests/Bitcode/NaClMungeTest.h"
21 22
22 using namespace llvm; 23 using namespace llvm;
23 using namespace naclmungetest; 24 using namespace naclmungetest;
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 EXPECT_EQ("Error(62:4): Invalid function record: <24 2 1 31>\n", 396 EXPECT_EQ("Error(62:4): Invalid function record: <24 2 1 31>\n",
396 Munger.getTestResults()); 397 Munger.getTestResults());
397 EXPECT_FALSE(DumpMunger.runTestForAssembly(ARRAY(Align30))); 398 EXPECT_FALSE(DumpMunger.runTestForAssembly(ARRAY(Align30)));
398 EXPECT_EQ( 399 EXPECT_EQ(
399 " store float %p1, float* %p0, align 0;\n" 400 " store float %p1, float* %p0, align 0;\n"
400 "Error(62:4): store: Illegal alignment for float. Expects: 1 or 4\n", 401 "Error(62:4): store: Illegal alignment for float. Expects: 1 or 4\n",
401 DumpMunger.getLinesWithSubstring("store")); 402 DumpMunger.getLinesWithSubstring("store"));
402 } 403 }
403 404
404 } // end of anonymous namespace 405 } // end of anonymous namespace
OLDNEW
« src/IceInst.h ('K') | « unittest/IceELFSectionTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698