summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-08-17 03:20:55 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-08-17 03:20:55 +0000
commit034b94a55754e0d43fece12f83951ebb12b9e4b5 (patch)
tree2a3c0deda8188a8dfaa9f14c209779910e07f92b /clang/unittests/Tooling/RecursiveASTVisitorTest.cpp
parent0564c75e7b5dde09f2ba67e85d337e9f7222a556 (diff)
downloadbcm5719-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.cpp7
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
OpenPOWER on IntegriCloud