diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2014-10-01 21:33:22 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2014-10-01 21:33:22 +0000 |
commit | 56b11ca8a547e590ec6c50679b57f25cae1f018f (patch) | |
tree | e759979c97a1838f82a174328c9acebab203e5c6 /clang/test/Parser/cxx-default-args.cpp | |
parent | 379e375761f562d9a864d55e2e7149fa1aea6358 (diff) | |
download | bcm5719-llvm-56b11ca8a547e590ec6c50679b57f25cae1f018f.tar.gz bcm5719-llvm-56b11ca8a547e590ec6c50679b57f25cae1f018f.zip |
Test case for my r218780 patch.
Suggested by Richard Smith.
rdar://18508589.
llvm-svn: 218830
Diffstat (limited to 'clang/test/Parser/cxx-default-args.cpp')
-rw-r--r-- | clang/test/Parser/cxx-default-args.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-default-args.cpp b/clang/test/Parser/cxx-default-args.cpp index 36abf0d8cb3..f0e2e69b44d 100644 --- a/clang/test/Parser/cxx-default-args.cpp +++ b/clang/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'}} +}; |