aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2011-02-22 00:19:36 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2011-02-22 00:19:36 +0000
commit24d44eddfc98464d10802e71c77d3dc3e45f4aac (patch)
treecb5fb462673aada0388050eb9c139fa879022c0e
parent21761c8378a493c32ab0f7d2b8880986a0ba73a3 (diff)
Add reference to PR 9278 for archaeologists.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126164 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp b/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp
index 3724243ede..20dd6343ce 100644
--- a/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp
+++ b/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5.cpp
@@ -14,6 +14,7 @@ struct S {
operator auto(); // expected-error{{'auto' not allowed here}}
};
+// PR 9278: auto is not allowed in typedefs, except with a trailing return type.
typedef auto *AutoPtr; // expected-error{{'auto' not allowed in typedef}}
typedef auto Fun(int a) -> decltype(a + a);