aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/C++Frontend/2003-09-22-CompositeExprValue.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-09-22-CompositeExprValue.cpp b/test/C++Frontend/2003-09-22-CompositeExprValue.cpp
new file mode 100644
index 0000000000..9ee0289658
--- /dev/null
+++ b/test/C++Frontend/2003-09-22-CompositeExprValue.cpp
@@ -0,0 +1,9 @@
+struct duration {
+ duration operator/=(int c) {
+ return *this;
+ }
+};
+
+void a000090() {
+ duration() /= 1;
+}