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 | 4a44beb5fd1b0c4ad720ede3967a5398018c7f47 (patch) | |
| tree | 61ff04cc89654506a9d4ea7e21d80de6f17b778f | |
| parent | 36d988f02356a0cbbee86b67830cd3bba2b0241c (diff) | |
| download | bcm5719-llvm-4a44beb5fd1b0c4ad720ede3967a5398018c7f47.tar.gz bcm5719-llvm-4a44beb5fd1b0c4ad720ede3967a5398018c7f47.zip | |
FileCheck'ize test/SemaCXX/qualified-names-print.cpp and merge it to other
-ast-print tests
llvm-svn: 173387
| -rw-r--r-- | clang/test/SemaCXX/ast-print.cpp | 18 | ||||
| -rw-r--r-- | clang/test/SemaCXX/qualified-names-print.cpp | 15 |
2 files changed, 18 insertions, 15 deletions
diff --git a/clang/test/SemaCXX/ast-print.cpp b/clang/test/SemaCXX/ast-print.cpp index aeb4039d597..d41c347620f 100644 --- a/clang/test/SemaCXX/ast-print.cpp +++ b/clang/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/clang/test/SemaCXX/qualified-names-print.cpp b/clang/test/SemaCXX/qualified-names-print.cpp deleted file mode 100644 index 2099268a1a9..00000000000 --- a/clang/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; -} |

