summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/reference-bind-default-argument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/reference-bind-default-argument.cpp')
-rw-r--r--clang/test/CodeGenCXX/reference-bind-default-argument.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/reference-bind-default-argument.cpp b/clang/test/CodeGenCXX/reference-bind-default-argument.cpp
new file mode 100644
index 0000000..acce962
--- /dev/null
+++ b/clang/test/CodeGenCXX/reference-bind-default-argument.cpp
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 %s -emit-llvm-only -verify
+
+struct A {};
+struct B : A {};
+void a(const A& x = B());
+void b() { a(); }