aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-02-15 16:20:15 +0000
committerDouglas Gregor <dgregor@apple.com>2012-02-15 16:20:15 +0000
commit793cd1c4cdfaafc52e2c2ad9dae959befe4bb166 (patch)
tree8b212fa72a8aa9c6fbad4227c2fe027046566dc9 /test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp
parent0bcc3d87223d7796946bfa6dd6174af900d8eba4 (diff)
Specialize noreturn diagnostics for lambda expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150586 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp')
-rw-r--r--test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp b/test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp
index 627071343e..9dbe2e189f 100644
--- a/test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp
+++ b/test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp
@@ -2,7 +2,7 @@
// Check that analysis-based warnings work in lambda bodies.
void analysis_based_warnings() {
- (void)[]() -> int { }; // expected-warning{{control reaches end of non-void function}}
+ (void)[]() -> int { }; // expected-warning{{control reaches end of non-void lambda}}
}
// Check that we get the right types of captured variables (the