From: Dmitri Gribenko Date: Thu, 24 Jan 2013 23:21:11 +0000 (+0000) Subject: FileCheck'ize test/SemaCXX/qualified-names-print.cpp and merge it to other X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a04cbd98f65827918e857e7ab5597676b9d8e3b;p=clang FileCheck'ize test/SemaCXX/qualified-names-print.cpp and merge it to other -ast-print tests git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173387 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/ast-print.cpp b/test/SemaCXX/ast-print.cpp index aeb4039d59..d41c347620 100644 --- a/test/SemaCXX/ast-print.cpp +++ b/test/SemaCXX/ast-print.cpp @@ -81,3 +81,21 @@ struct test9 E a = A; } }; + +namespace test10 { + namespace M { + template + struct X { + enum { value }; + }; + } +} + +typedef int INT; + +// CHECK: test11 +// CHECK-NEXT: return test10::M::X::value; +int test11() { + return test10::M::X::value; +} + diff --git a/test/SemaCXX/qualified-names-print.cpp b/test/SemaCXX/qualified-names-print.cpp deleted file mode 100644 index 2099268a1a..0000000000 --- a/test/SemaCXX/qualified-names-print.cpp +++ /dev/null @@ -1,15 +0,0 @@ -// RUN: %clang_cc1 -ast-print %s 2>&1 | grep "N::M::X::value" -namespace N { - namespace M { - template - struct X { - enum { value }; - }; - } -} - -typedef int INT; - -int test() { - return N::M::X::value; -}