[cfe-commits] r128168 - in /cfe/trunk/test/SemaCXX: goto.cpp ptrtomember.cpp

Douglas Gregor dgregor at apple.com
Wed Mar 23 14:19:43 PDT 2011


Author: dgregor
Date: Wed Mar 23 16:19:43 2011
New Revision: 128168

URL: http://llvm.org/viewvc/llvm-project?rev=128168&view=rev
Log:
Unbreak test

Modified:
    cfe/trunk/test/SemaCXX/goto.cpp
    cfe/trunk/test/SemaCXX/ptrtomember.cpp

Modified: cfe/trunk/test/SemaCXX/goto.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/goto.cpp?rev=128168&r1=128167&r2=128168&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/goto.cpp (original)
+++ cfe/trunk/test/SemaCXX/goto.cpp Wed Mar 23 16:19:43 2011
@@ -2,11 +2,17 @@
 
 // PR9463
 double *end;
-void f() {
+void f(bool b1, bool b2) {
   {
-    int end = 0;
-    goto end;
-    end = 1;
+    do {
+      int end = 0;
+      if (b2) {
+        do {
+          goto end;
+        } while (b2);
+      }
+      end = 1;
+    } while (b1);
   }
 
  end:

Modified: cfe/trunk/test/SemaCXX/ptrtomember.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/ptrtomember.cpp?rev=128168&r1=128167&r2=128168&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/ptrtomember.cpp (original)
+++ cfe/trunk/test/SemaCXX/ptrtomember.cpp Wed Mar 23 16:19:43 2011
@@ -27,7 +27,8 @@
     (void)(void*)(p->*m); // expected-error {{a bound member function may only be called}}
     (void)reinterpret_cast<void*>(p->*m); // expected-error {{a bound member function may only be called}}
     if (p->*m) {} // expected-error {{a bound member function may only be called}}
-    if (!p->*m) {} // expected-error {{a bound member function may only be called}}
+    if (!p->*m) {} // FIXME: xpected-error {{a bound member function may only be called}} \
+    // expected-error{{left hand operand to ->* must be a pointer to class compatible with the right hand operand, but is 'bool'}}
     if (p->m) {}; // expected-error {{a bound member function may only be called}}
-    if (!p->m) {}; // expected-error {{a bound member function may only be called}}
+    if (!p->m) {}; // FIXME: xpected-error {{a bound member function may only be called}}
 }





More information about the cfe-commits mailing list