summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/expr/expr.prim/expr.prim.lambda/templates.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
commitcf11eb76ed8d8005deb4165c4fae74b75ad4dcb1 (patch)
tree8d1dc79ed803b286f959638a26ed343a021f6835 /clang/test/CXX/expr/expr.prim/expr.prim.lambda/templates.cpp
parent85dae892a464b5011b01a92d82b6279959320f70 (diff)
downloadbcm5719-llvm-cf11eb76ed8d8005deb4165c4fae74b75ad4dcb1.tar.gz
bcm5719-llvm-cf11eb76ed8d8005deb4165c4fae74b75ad4dcb1.zip
Specialize noreturn diagnostics for lambda expressions.
llvm-svn: 150586
Diffstat (limited to 'clang/test/CXX/expr/expr.prim/expr.prim.lambda/templates.cpp')
-rw-r--r--clang/test/CXX/expr/expr.prim/expr.prim.lambda/templates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/templates.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/templates.cpp
index baa29ea9443..14491cc3b20 100644
--- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/templates.cpp
+++ b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/templates.cpp
@@ -2,7 +2,7 @@
template<typename T>
void test_attributes() {
- auto nrl = []() [[noreturn]] {}; // expected-warning{{function declared 'noreturn' should not return}}
+ auto nrl = []() [[noreturn]] {}; // expected-error{{lambda declared 'noreturn' should not return}}
}
template void test_attributes<int>(); // expected-note{{in instantiation of function}}
OpenPOWER on IntegriCloud