* g++.dg/lookup/lambda1.C New.
authorNathan Sidwell <nathan@acm.org>
Wed, 31 May 2017 16:38:28 +0000 (16:38 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 31 May 2017 16:38:28 +0000 (16:38 +0000)
From-SVN: r248747

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/lambda1.C [new file with mode: 0644]

index c68b9a37d0debdd879b2e557c89d60c76264359b..9bcf41c258b79c1c584201360b19efd2e68766d4 100644 (file)
@@ -1,3 +1,7 @@
+2017-05-31  Nathan Sidwell  <nathan@acm.org>
+
+       * g++.dg/lookup/lambda1.C New.
+
 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
 
        * 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 (file)
index 0000000..1cf450e
--- /dev/null
@@ -0,0 +1,13 @@
+// { dg-do compile { target c++11 } }
+
+namespace std
+{
+  typedef int I;
+}
+
+void foo ()
+{
+  using namespace std;
+
+  auto l = [] (I) {};
+}