From 3909991c7b89c99e28d4b8ed2a2de740adb1d432 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Wed, 31 May 2017 16:38:28 +0000 Subject: [PATCH] * g++.dg/lookup/lambda1.C New. From-SVN: r248747 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/lookup/lambda1.C | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gcc/testsuite/g++.dg/lookup/lambda1.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c68b9a37d0d..9bcf41c258b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-05-31 Nathan Sidwell + + * g++.dg/lookup/lambda1.C New. + 2017-05-31 Bin Cheng * gcc.dg/tree-ssa/ivopt_mult_4.c: Explicitly check comparison diff --git a/gcc/testsuite/g++.dg/lookup/lambda1.C b/gcc/testsuite/g++.dg/lookup/lambda1.C new file mode 100644 index 00000000000..1cf450e363f --- /dev/null +++ b/gcc/testsuite/g++.dg/lookup/lambda1.C @@ -0,0 +1,13 @@ +// { dg-do compile { target c++11 } } + +namespace std +{ + typedef int I; +} + +void foo () +{ + using namespace std; + + auto l = [] (I) {}; +} -- 2.30.2