From: Faisal Vali Date: Fri, 27 Sep 2013 16:45:48 +0000 (+0000) Subject: Fix the test files by removing the unnecessary -emit-llvm flag (should address Matt... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=473f8b2f5453189406e0dc6e623abb1c7b6f24be;p=clang 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) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191531 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/expr/expr.prim/expr.prim.lambda/generic-lambda-unimplemented-1y.cpp b/test/CXX/expr/expr.prim/expr.prim.lambda/generic-lambda-unimplemented-1y.cpp index cd773b4278..7773aedb4e 100644 --- a/test/CXX/expr/expr.prim/expr.prim.lambda/generic-lambda-unimplemented-1y.cpp +++ b/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/test/CXX/expr/expr.prim/expr.prim.lambda/p5-generic-lambda-1y.cpp b/test/CXX/expr/expr.prim/expr.prim.lambda/p5-generic-lambda-1y.cpp index c1311617ef..ba41cb47f5 100644 --- a/test/CXX/expr/expr.prim/expr.prim.lambda/p5-generic-lambda-1y.cpp +++ b/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) {