[cfe-commits] r95032 - /cfe/trunk/test/FixIt/fixit.cpp

Douglas Gregor dgregor at apple.com
Mon Feb 1 15:46:28 PST 2010


Author: dgregor
Date: Mon Feb  1 17:46:27 2010
New Revision: 95032

URL: http://llvm.org/viewvc/llvm-project?rev=95032&view=rev
Log:
Make this fix-it test case actually fail when there is a problem; add
a test for access declarations and remove a (broken) test for removal
of default arguments.

Modified:
    cfe/trunk/test/FixIt/fixit.cpp

Modified: cfe/trunk/test/FixIt/fixit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/FixIt/fixit.cpp?rev=95032&r1=95031&r2=95032&view=diff

==============================================================================
--- cfe/trunk/test/FixIt/fixit.cpp (original)
+++ cfe/trunk/test/FixIt/fixit.cpp Mon Feb  1 17:46:27 2010
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -pedantic -fixit %s -o - | %clang_cc1 -fsyntax-only -pedantic -Werror -x c++ -
+// RUN: %clang_cc1 -pedantic -Wall -fixit %s -o - | %clang_cc1 -fsyntax-only -pedantic -Wall -Werror -x c++ -
 
 /* This is a test of the various code modification hints that are
    provided as part of warning or extension diagnostics. All of the
@@ -28,11 +28,12 @@
 
 template<> class CT<1> { }; // expected-error{{tag type}}
 
-// PR5444
-namespace PR5444 {
-  void foo(int x, int y = 0);
-  void foo(int x, int y = 0) { }
-
-  void foo(int  = 0);
-  void foo(int  = 0) { }
-}
+// Access declarations
+class A {
+protected:
+  int foo();
+};
+
+class B : public A {
+  A::foo; // expected-warning{{access declarations are deprecated}}
+};





More information about the cfe-commits mailing list