[clang-tools-extra] r267841 - FindAllSymbolsTest.CTypedefTest: Tweak for LLP64 like x86_64-win32.
NAKAMURA Takumi via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 27 19:15:17 PDT 2016
Author: chapuni
Date: Wed Apr 27 21:15:16 2016
New Revision: 267841
URL: http://llvm.org/viewvc/llvm-project?rev=267841&view=rev
Log:
FindAllSymbolsTest.CTypedefTest: Tweak for LLP64 like x86_64-win32.
In file included from symbol.cc:1:
symbols.h:2:24: error: typedef redefinition with different types ('unsigned int'
vs 'unsigned long long')
typedef unsigned size_t;
^
Modified:
clang-tools-extra/trunk/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp
Modified: clang-tools-extra/trunk/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp?rev=267841&r1=267840&r2=267841&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp Wed Apr 27 21:15:16 2016
@@ -330,7 +330,7 @@ TEST_F(FindAllSymbolsTest, DecayedTypeTe
TEST_F(FindAllSymbolsTest, CTypedefTest) {
static const char Code[] = R"(
- typedef unsigned size_t;
+ typedef unsigned size_t_;
typedef struct { int x; } X;
using XX = X;
)";
@@ -338,7 +338,7 @@ TEST_F(FindAllSymbolsTest, CTypedefTest)
{
SymbolInfo Symbol =
- CreateSymbolInfo("size_t", SymbolInfo::TypedefName, HeaderName, 2, {});
+ CreateSymbolInfo("size_t_", SymbolInfo::TypedefName, HeaderName, 2, {});
EXPECT_TRUE(hasSymbol(Symbol));
getSymbolExtraInfo(Symbol);
EXPECT_EQ("unsigned int",
More information about the cfe-commits
mailing list