aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-default-args.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/cxx-default-args.cpp')
-rw-r--r--test/Parser/cxx-default-args.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Parser/cxx-default-args.cpp b/test/Parser/cxx-default-args.cpp
index a7bb5eeda8..7fe8474142 100644
--- a/test/Parser/cxx-default-args.cpp
+++ b/test/Parser/cxx-default-args.cpp
@@ -10,3 +10,7 @@ class C {
typedef struct Inst {
void m(int x=0);
} *InstPtr;
+
+struct X {
+ void f(int x = 1:); // expected-error {{unexpected end of default argument expression}}
+};