[cfe-commits] r143906 - in /cfe/trunk/test/CXX/expr/expr.prim: expr.prim.general/p12-0x.cpp expr.prim.general/p4-0x.cpp p12-0x.cpp p4-0x.cpp

David Blaikie dblaikie at gmail.com
Sun Nov 6 19:27:58 PST 2011


Author: dblaikie
Date: Sun Nov  6 21:27:58 2011
New Revision: 143906

URL: http://llvm.org/viewvc/llvm-project?rev=143906&view=rev
Log:
Move tests to the appropriate directory to match the spec hierarchy.

Added:
    cfe/trunk/test/CXX/expr/expr.prim/expr.prim.general/p12-0x.cpp
      - copied unchanged from r143902, cfe/trunk/test/CXX/expr/expr.prim/p12-0x.cpp
    cfe/trunk/test/CXX/expr/expr.prim/expr.prim.general/p4-0x.cpp
      - copied unchanged from r143902, cfe/trunk/test/CXX/expr/expr.prim/p4-0x.cpp
Removed:
    cfe/trunk/test/CXX/expr/expr.prim/p12-0x.cpp
    cfe/trunk/test/CXX/expr/expr.prim/p4-0x.cpp

Removed: cfe/trunk/test/CXX/expr/expr.prim/p12-0x.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/expr/expr.prim/p12-0x.cpp?rev=143905&view=auto
==============================================================================
--- cfe/trunk/test/CXX/expr/expr.prim/p12-0x.cpp (original)
+++ cfe/trunk/test/CXX/expr/expr.prim/p12-0x.cpp (removed)
@@ -1,12 +0,0 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
-
-struct S {
-  int *j = &nonexistent; // expected-error {{use of undeclared identifier 'nonexistent'}}
-  int *m = &n; // ok
-
-  int n = f(); // ok
-  int f();
-};
-
-int i = sizeof(S::m); // ok
-int j = sizeof(S::m + 42); // ok

Removed: cfe/trunk/test/CXX/expr/expr.prim/p4-0x.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/expr/expr.prim/p4-0x.cpp?rev=143905&view=auto
==============================================================================
--- cfe/trunk/test/CXX/expr/expr.prim/p4-0x.cpp (original)
+++ cfe/trunk/test/CXX/expr/expr.prim/p4-0x.cpp (removed)
@@ -1,10 +0,0 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
-
-struct S {
-  S *p = this; // ok
-  decltype(this) q; // expected-error {{invalid use of 'this' outside of a nonstatic member function}} \
-                       expected-error {{C++ requires a type specifier for all declarations}}
-
-  int arr[sizeof(this)]; // expected-error {{invalid use of 'this' outside of a nonstatic member function}}
-  int sz = sizeof(this); // ok
-};





More information about the cfe-commits mailing list