[cfe-commits] r173387 - in /cfe/trunk/test/SemaCXX: ast-print.cpp qualified-names-print.cpp
Dmitri Gribenko
gribozavr at gmail.com
Thu Jan 24 15:21:11 PST 2013
Author: gribozavr
Date: Thu Jan 24 17:21:11 2013
New Revision: 173387
URL: http://llvm.org/viewvc/llvm-project?rev=173387&view=rev
Log:
FileCheck'ize test/SemaCXX/qualified-names-print.cpp and merge it to other
-ast-print tests
Removed:
cfe/trunk/test/SemaCXX/qualified-names-print.cpp
Modified:
cfe/trunk/test/SemaCXX/ast-print.cpp
Modified: cfe/trunk/test/SemaCXX/ast-print.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/ast-print.cpp?rev=173387&r1=173386&r2=173387&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/ast-print.cpp (original)
+++ cfe/trunk/test/SemaCXX/ast-print.cpp Thu Jan 24 17:21:11 2013
@@ -81,3 +81,21 @@
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;
+}
+
Removed: cfe/trunk/test/SemaCXX/qualified-names-print.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/qualified-names-print.cpp?rev=173386&view=auto
==============================================================================
--- cfe/trunk/test/SemaCXX/qualified-names-print.cpp (original)
+++ cfe/trunk/test/SemaCXX/qualified-names-print.cpp (removed)
@@ -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;
-}
More information about the cfe-commits
mailing list