summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-default-args.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/cxx-default-args.cpp')
-rw-r--r--clang/test/Parser/cxx-default-args.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-default-args.cpp b/clang/test/Parser/cxx-default-args.cpp
index 0c028f7366f..0095a2f04dc 100644
--- a/clang/test/Parser/cxx-default-args.cpp
+++ b/clang/test/Parser/cxx-default-args.cpp
@@ -39,4 +39,5 @@ struct S {
struct U {
void i(int x = ) {} // expected-error{{expected expression}}
+ typedef int *fp(int x = ); // expected-error{{default arguments can only be specified for parameters in a function declaration}}
};
OpenPOWER on IntegriCloud