aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/trailing-return-0x.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2011-02-20 03:19:35 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2011-02-20 03:19:35 +0000
commit34b41d939a1328f484511c6002ba2456db879a29 (patch)
tree9631c2ce7dde0b9c680fe463d5718d0cb8f92e45 /test/SemaCXX/trailing-return-0x.cpp
parent9ed9a250180f19b2c44df83a196fc3a2ac82f817 (diff)
Implement the C++0x deduced 'auto' feature.
This fixes PR 8738, 9060 and 9132. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126069 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/trailing-return-0x.cpp')
-rw-r--r--test/SemaCXX/trailing-return-0x.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/trailing-return-0x.cpp b/test/SemaCXX/trailing-return-0x.cpp
index 0912750ee0..b52b240da3 100644
--- a/test/SemaCXX/trailing-return-0x.cpp
+++ b/test/SemaCXX/trailing-return-0x.cpp
@@ -19,7 +19,7 @@ auto f() -> int
auto g(); // expected-error{{return without trailing return type}}
-int h() -> int; // expected-error{{trailing return type without 'auto'}}
+int h() -> int; // expected-error{{trailing return type must specify return type 'auto', not 'int'}}
int x;