[cfe-commits] r135751 - in /cfe/trunk/test/CodeGenCXX: incomplete-types.cpp init-incomplete-type.cpp

Chris Lattner sabre at nondot.org
Thu Jul 21 23:26:12 PDT 2011


Author: lattner
Date: Fri Jul 22 01:26:12 2011
New Revision: 135751

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

Added:
    cfe/trunk/test/CodeGenCXX/incomplete-types.cpp
      - copied unchanged from r135748, cfe/trunk/test/CodeGenCXX/init-incomplete-type.cpp
Removed:
    cfe/trunk/test/CodeGenCXX/init-incomplete-type.cpp

Removed: cfe/trunk/test/CodeGenCXX/init-incomplete-type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/init-incomplete-type.cpp?rev=135750&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/init-incomplete-type.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/init-incomplete-type.cpp (removed)
@@ -1,37 +0,0 @@
-// RUN: %clang_cc1 %s -emit-llvm-only -verify
-// PR5489
-
-template<typename E>
-struct Bar {
- int x_;
-};
-
-static struct Bar<int> bar[1] = {
-  { 0 }
-};
-
-
-
-namespace incomplete_type_refs {
-  struct A;
-  extern A g[];
-  void foo(A*);
-  void f(void) {
-    foo(g);    // Reference to array with unknown element type.
-  }
-
-  struct A {   // define the element type.
-    int a,b,c;
-  };
-
-  A *f2() {
-    return &g[1];
-  }
-
-}
-
-namespace PR10395 {
-  struct T;
-  extern T x[];
-  T* f() { return x; }
-}





More information about the cfe-commits mailing list