diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-08-17 03:20:55 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-08-17 03:20:55 +0000 |
commit | 034b94a55754e0d43fece12f83951ebb12b9e4b5 (patch) | |
tree | 2a3c0deda8188a8dfaa9f14c209779910e07f92b /clang/unittests/Tooling/RecursiveASTVisitorTest.cpp | |
parent | 0564c75e7b5dde09f2ba67e85d337e9f7222a556 (diff) | |
download | bcm5719-llvm-034b94a55754e0d43fece12f83951ebb12b9e4b5.tar.gz bcm5719-llvm-034b94a55754e0d43fece12f83951ebb12b9e4b5.zip |
Don't forget to apply #pragma pack to partial and explicit specializations of
class templates. This fixes misalignment issues in llvm/Support/Endian.h when
built by Clang.
llvm-svn: 162074
Diffstat (limited to 'clang/unittests/Tooling/RecursiveASTVisitorTest.cpp')
-rw-r--r-- | clang/unittests/Tooling/RecursiveASTVisitorTest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp b/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp index f3ba6468d03..4b539067b13 100644 --- a/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp +++ b/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp @@ -385,4 +385,11 @@ TEST(RecursiveASTVisitor, VisitsImplicitCopyConstructors) { "int main() { Simple s; Simple t(s); }\n")); } +TEST(RecursiveASTVisitor, VisitsExtension) { + DeclRefExprVisitor Visitor; + Visitor.ExpectMatch("s", 1, 24); + EXPECT_TRUE(Visitor.runOver( + "int s = __extension__ (s);\n")); +} + } // end namespace clang |