[cfe-commits] r68325 - in /cfe/trunk/test: FixIt/ FixIt/fixit-c90.c FixIt/fixit-errors.c FixIt/fixit.c FixIt/fixit.cpp Sema/fixit-c90.c Sema/fixit-errors.c Sema/fixit.c SemaCXX/fixit.cpp

Douglas Gregor dgregor at apple.com
Thu Apr 2 10:19:14 PDT 2009


Author: dgregor
Date: Thu Apr  2 12:19:13 2009
New Revision: 68325

URL: http://llvm.org/viewvc/llvm-project?rev=68325&view=rev
Log:
Move the fix-it tests into their own subdirectory

Added:
    cfe/trunk/test/FixIt/
    cfe/trunk/test/FixIt/fixit-c90.c
      - copied unchanged from r68320, cfe/trunk/test/Sema/fixit-c90.c
    cfe/trunk/test/FixIt/fixit-errors.c
      - copied unchanged from r68320, cfe/trunk/test/Sema/fixit-errors.c
    cfe/trunk/test/FixIt/fixit.c
      - copied unchanged from r68320, cfe/trunk/test/Sema/fixit.c
    cfe/trunk/test/FixIt/fixit.cpp
      - copied unchanged from r68320, cfe/trunk/test/SemaCXX/fixit.cpp
Removed:
    cfe/trunk/test/Sema/fixit-c90.c
    cfe/trunk/test/Sema/fixit-errors.c
    cfe/trunk/test/Sema/fixit.c
    cfe/trunk/test/SemaCXX/fixit.cpp

Removed: cfe/trunk/test/Sema/fixit-c90.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/fixit-c90.c?rev=68324&view=auto

==============================================================================
--- cfe/trunk/test/Sema/fixit-c90.c (original)
+++ cfe/trunk/test/Sema/fixit-c90.c (removed)
@@ -1,11 +0,0 @@
-/* RUN: clang-cc -fsyntax-only -std=c90 -pedantic -fixit %s -o - | clang-cc -pedantic -x c -std=c90 -Werror -
- */
-
-/* This is a test of the various code modification hints that are
-   provided as part of warning or extension diagnostics. All of the
-   warnings will be fixed by -fixit, and the resulting file should
-   compile cleanly with -Werror -pedantic. */
-
-enum e0 {
-  e1,
-};

Removed: cfe/trunk/test/Sema/fixit-errors.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/fixit-errors.c?rev=68324&view=auto

==============================================================================
--- cfe/trunk/test/Sema/fixit-errors.c (original)
+++ cfe/trunk/test/Sema/fixit-errors.c (removed)
@@ -1,10 +0,0 @@
-// RUN: clang-cc -fsyntax-only -pedantic -fixit %s -o - | clang-cc -pedantic -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
-   warnings will be fixed by -fixit, and the resulting file should
-   compile cleanly with -Werror -pedantic. */
-
-struct s; // expected-note{{previous use is here}}
-
-union s *s1; // expected-error{{use of 's' with tag type that does not match previous declaration}}

Removed: cfe/trunk/test/Sema/fixit.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/fixit.c?rev=68324&view=auto

==============================================================================
--- cfe/trunk/test/Sema/fixit.c (original)
+++ cfe/trunk/test/Sema/fixit.c (removed)
@@ -1,29 +0,0 @@
-// RUN: clang-cc -fsyntax-only -pedantic -fixit %s -o - | clang-cc -pedantic -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
-   warnings will be fixed by -fixit, and the resulting file should
-   compile cleanly with -Werror -pedantic. */
-
-void f0(void) { };
-
-struct s {
-  int x, y;;
-};
-
-_Complex cd;
-
-struct s s0 = { y: 5 };
-int array0[5] = { [3] 3 };
-
-void f1(x, y) 
-{
-}
-
-int i0 = { 17 };
-
-int f2(const char *my_string) {
-  // FIXME: terminal output isn't so good when "my_string" is shorter
-  // FIXME: Needs an #include hint, too!
-  //  return my_string == "foo";
-}

Removed: cfe/trunk/test/SemaCXX/fixit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/fixit.cpp?rev=68324&view=auto

==============================================================================
--- cfe/trunk/test/SemaCXX/fixit.cpp (original)
+++ cfe/trunk/test/SemaCXX/fixit.cpp (removed)
@@ -1,29 +0,0 @@
-// RUN: clang-cc -fsyntax-only -pedantic -fixit %s -o - | clang-cc -fsyntax-only -pedantic -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
-   warnings will be fixed by -fixit, and the resulting file should
-   compile cleanly with -Werror -pedantic. */
-
-struct C1 { 
-  virtual void f();
-  static void g();
-};
-struct C2 : virtual public virtual C1 { }; // expected-error{{duplicate}}
-
-virtual void C1::f() { } // expected-error{{'virtual' can only be specified inside the class definition}}
-
-static void C1::g() { } // expected-error{{'static' can only be specified inside the class definition}}
-
-template<int Value> struct CT { }; // expected-note{{previous use is here}}
-
-CT<10 >> 2> ct; // expected-warning{{require parentheses}}
-
-class C3 {
-public:
-  C3(C3, int i = 0); // expected-error{{copy constructor must pass its first argument by reference}}
-};
-
-struct CT<0> { }; // expected-error{{'template<>'}}
-
-template<> class CT<1> { }; // expected-error{{tag type}}





More information about the cfe-commits mailing list