aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/comma.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/comma.cpp')
-rw-r--r--test/SemaCXX/comma.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaCXX/comma.cpp b/test/SemaCXX/comma.cpp
new file mode 100644
index 000000000000..79ff7d1cde25
--- /dev/null
+++ b/test/SemaCXX/comma.cpp
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+// PR6076
+void f();
+void (&g)() = (void(), f);
+
+int a[1];
+int (&b)[1] = (void(), a);