summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFaisal Vali <faisalv@yahoo.com>2013-09-27 16:45:48 +0000
committerFaisal Vali <faisalv@yahoo.com>2013-09-27 16:45:48 +0000
commit7c9f3ca21a6a93b85245d5f19e946a461b78cb2c (patch)
treea664330ca2a97ea000b9d4fc670c3b42aeafd5bb
parent45dc1b2fd3432610668025c59441f59460349144 (diff)
downloadbcm5719-llvm-7c9f3ca21a6a93b85245d5f19e946a461b78cb2c.tar.gz
bcm5719-llvm-7c9f3ca21a6a93b85245d5f19e946a461b78cb2c.zip
Fix the test files by removing the unnecessary -emit-llvm flag (should address Matt Beaumont-Gay's concern regarding failure on a read-only filesystem)
llvm-svn: 191531
-rw-r--r--clang/test/CXX/expr/expr.prim/expr.prim.lambda/generic-lambda-unimplemented-1y.cpp2
-rw-r--r--clang/test/CXX/expr/expr.prim/expr.prim.lambda/p5-generic-lambda-1y.cpp6
2 files changed, 2 insertions, 6 deletions
diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/generic-lambda-unimplemented-1y.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/generic-lambda-unimplemented-1y.cpp
index cd773b42781..7773aedb4ee 100644
--- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/generic-lambda-unimplemented-1y.cpp
+++ b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/generic-lambda-unimplemented-1y.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -std=c++1y %s -verify -emit-llvm
+// RUN: %clang_cc1 -fsyntax-only -std=c++1y %s -verify
namespace return_type_deduction_ok {
auto l = [](auto a) ->auto { return a; }(2);
auto l2 = [](auto a) ->decltype(auto) { return a; }(2);
diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p5-generic-lambda-1y.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p5-generic-lambda-1y.cpp
index c1311617efb..ba41cb47f59 100644
--- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p5-generic-lambda-1y.cpp
+++ b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p5-generic-lambda-1y.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++1y -DCXX1Y -emit-llvm
+// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++1y -DCXX1Y
namespace test_factorial {
@@ -70,7 +70,6 @@ int test2() {
{
auto L = [](auto *a) {
return (*a)(a); }; //expected-error{{called object type 'double' is not a function}}
- //l(&l);
double d;
L(&d); //expected-note{{in instantiation of}}
auto M = [](auto b) { return b; };
@@ -79,7 +78,6 @@ int test2() {
{
auto L = [](auto *a) ->decltype (a->foo()) { //expected-note2{{candidate template ignored:}}
return (*a)(a); };
- //l(&l);
double d;
L(&d); //expected-error{{no matching function for call}}
auto M = [](auto b) { return b; };
@@ -118,8 +116,6 @@ namespace nested_lambdas {
return a + b;
};
};
- // auto M = L(3.14);
- // return M('4');
}
auto get_lambda() {
return [](auto a) {
OpenPOWER on IntegriCloud