summaryrefslogtreecommitdiffstats
path: root/test/Parser/cxx-default-args.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2014-10-01 21:33:22 +0000
committerFariborz Jahanian <fjahanian@apple.com>2014-10-01 21:33:22 +0000
commit3b49de555e4ef842a91536ea30923b8ab8bd26ef (patch)
tree5e287db5e00911eb8f4e3249a6d25724be2b2427 /test/Parser/cxx-default-args.cpp
parent4bc65b482b19e10ef2b18c0a9f1a45163d8ddc14 (diff)
Test case for my r218780 patch.
Suggested by Richard Smith. rdar://18508589. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@218830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-default-args.cpp')
-rw-r--r--test/Parser/cxx-default-args.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Parser/cxx-default-args.cpp b/test/Parser/cxx-default-args.cpp
index 36abf0d8cb..f0e2e69b44 100644
--- a/test/Parser/cxx-default-args.cpp
+++ b/test/Parser/cxx-default-args.cpp
@@ -31,3 +31,8 @@ struct T {
void f7(bool a = T1<int, bool>::V < 3);
void f8(int = func<0,1<2>(0), int = 1<0, T1<int,int>(int) = 0);
};
+
+// rdar://18508589
+struct S {
+ void f(int &r = error); // expected-error {{use of undeclared identifier 'error'}}
+};