[cfe-commits] r166078 - in /cfe/trunk/test: CXX/ast-print.cpp SemaCXX/ast-print.cpp

Eli Friedman eli.friedman at gmail.com
Tue Oct 16 16:55:06 PDT 2012


Author: efriedma
Date: Tue Oct 16 18:55:06 2012
New Revision: 166078

URL: http://llvm.org/viewvc/llvm-project?rev=166078&view=rev
Log:
Move test to a more appropriate place.


Added:
    cfe/trunk/test/SemaCXX/ast-print.cpp
      - copied unchanged from r166073, cfe/trunk/test/CXX/ast-print.cpp
Removed:
    cfe/trunk/test/CXX/ast-print.cpp

Removed: cfe/trunk/test/CXX/ast-print.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/ast-print.cpp?rev=166077&view=auto
==============================================================================
--- cfe/trunk/test/CXX/ast-print.cpp (original)
+++ cfe/trunk/test/CXX/ast-print.cpp (removed)
@@ -1,32 +0,0 @@
-// RUN: %clang_cc1 -ast-print %s | FileCheck %s
-
-// CHECK: r;
-// CHECK-NEXT: (r->method());
-struct MyClass
-{
-    void method() {}
-};
-
-struct Reference
-{
-    MyClass* object;
-    MyClass* operator ->() { return object; }
-};
-
-int main()
-{
-    Reference r;
-    (r->method());
-}
-
-// CHECK: if (int a = 1)
-// CHECK:  while (int a = 1)
-// CHECK:  switch (int a = 1)
-
-void f()
-{
-    if (int a = 1) { }
-    while (int a = 1) { }
-    switch (int a = 1) { }
-}
-





More information about the cfe-commits mailing list