summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/C++Frontend/2003-09-29-ArgumentNumberMismatch.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-09-29-ArgumentNumberMismatch.cpp b/test/C++Frontend/2003-09-29-ArgumentNumberMismatch.cpp
new file mode 100644
index 0000000000..9e348b6e13
--- /dev/null
+++ b/test/C++Frontend/2003-09-29-ArgumentNumberMismatch.cpp
@@ -0,0 +1,11 @@
+struct C {
+ int A, B;
+ ~C() {}
+
+ void operator^(C b) const { }
+};
+
+void test(C *P) {
+ *P ^ *P;
+}
+