diff options
author | Manuel Klimek <klimek@google.com> | 2013-08-22 12:12:24 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-08-22 12:12:24 +0000 |
commit | 2fdbea2819448ecb07ba69c5a70eb49691007880 (patch) | |
tree | ab24c9e98fe9246a5220986c29e031105ad9323c /clang/test/CXX/expr/expr.prim/expr.prim.lambda/p2-generic-lambda-1y.cpp | |
parent | 1559dd8a1cd7cb372046148165a5d0409aff4d82 (diff) | |
download | bcm5719-llvm-2fdbea2819448ecb07ba69c5a70eb49691007880.tar.gz bcm5719-llvm-2fdbea2819448ecb07ba69c5a70eb49691007880.zip |
Revert "Implement a rudimentary form of generic lambdas."
This reverts commit 606f5d7a99b11957e057e4cd1f55f931f66a42c7.
llvm-svn: 189004
Diffstat (limited to 'clang/test/CXX/expr/expr.prim/expr.prim.lambda/p2-generic-lambda-1y.cpp')
-rw-r--r-- | clang/test/CXX/expr/expr.prim/expr.prim.lambda/p2-generic-lambda-1y.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p2-generic-lambda-1y.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p2-generic-lambda-1y.cpp deleted file mode 100644 index 44656a37e31..00000000000 --- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p2-generic-lambda-1y.cpp +++ /dev/null @@ -1,23 +0,0 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++1y -DCXX1Y
-
-// prvalue
-void prvalue() {
- auto&& x = [](auto a)->void { };
- auto& y = [](auto *a)->void { }; // expected-error{{cannot bind to a temporary of type}}
-}
-
-namespace std {
- class type_info;
-}
-
-struct P {
- virtual ~P();
-};
-
-void unevaluated_operand(P &p, int i) {
- // FIXME: this should only emit one error.
- int i2 = sizeof([](auto a, auto b)->void{}(3, '4')); // expected-error{{lambda expression in an unevaluated operand}} \
- // expected-error{{invalid application of 'sizeof'}}
- const std::type_info &ti1 = typeid([](auto &a) -> P& { static P p; return p; }(i));
- const std::type_info &ti2 = typeid([](auto) -> int { return i; }(i)); // expected-error{{lambda expression in an unevaluated operand}}
-}
|