From 45bf56cdf900de40f60997fed8ef7aadf0ef75bb Mon Sep 17 00:00:00 2001 From: Manuel Klimek Date: Thu, 31 Jul 2014 07:19:30 +0000 Subject: Fix parsing of classes where the class name is an absolute nested name specifier. llvm-svn: 214393 --- clang/unittests/Format/FormatTest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/unittests/Format/FormatTest.cpp') diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 420129f1be2..bebd8d67d49 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -1846,6 +1846,7 @@ TEST_F(FormatTest, FormatsClasses) { verifyFormat("template \n" "struct Aaaaaaaaaaaaaaaaa\n" " : Aaaaaaaaaaaaaaaaa {};"); + verifyFormat("class ::A::B {};"); } TEST_F(FormatTest, FormatsVariableDeclarationsAfterStructOrClass) { -- cgit v1.2.3