commit | 42427409fd75a48381071e6da008a3c06897437a | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Thu Dec 06 15:42:21 2012 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Thu Dec 06 15:42:21 2012 +0000 |
tree | a861c02ea070784747efa0ed21d69137a281e1f3 | |
parent | 112aff155bae8fe11dce976dfd6e70285a769c3e [diff] [blame] |
Sema: Don't emit a warning when __func__ is used in a lambda outside of a function. Fixes PR14518. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169510 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/lambda-expressions.cpp b/test/SemaCXX/lambda-expressions.cpp index 6f92373..a333f38 100644 --- a/test/SemaCXX/lambda-expressions.cpp +++ b/test/SemaCXX/lambda-expressions.cpp
@@ -236,3 +236,7 @@ namespace PR13854 { auto l = [](void){}; } + +namespace PR14518 { + auto f = [](void) { return __func__; }; // no-warning +}