diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-24 23:21:11 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-24 23:21:11 +0000 |
commit | 0a04cbd98f65827918e857e7ab5597676b9d8e3b (patch) | |
tree | e6098e6ea9851bef7ec93b5142f495c2c8e7051d | |
parent | d130140cb7bce73b4350c5d50495443abe38418a (diff) |
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
-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; -} |