diff options
-rw-r--r-- | test/SemaCXX/ast-print.cpp | 18 | ||||
-rw-r--r-- | test/SemaCXX/qualified-names-print.cpp | 15 |
2 files changed, 18 insertions, 15 deletions
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<typename T> + struct X { + enum { value }; + }; + } +} + +typedef int INT; + +// CHECK: test11 +// CHECK-NEXT: return test10::M::X<INT>::value; +int test11() { + return test10::M::X<INT>::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<INT>::value" -namespace N { - namespace M { - template<typename T> - struct X { - enum { value }; - }; - } -} - -typedef int INT; - -int test() { - return N::M::X<INT>::value; -} |