From e308f681db5a56fba00cc8113abcc8933c2a874d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 22 Sep 2003 18:27:20 +0000 Subject: [PATCH] new testcase that crashes the C++ frontend, found by John git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8655 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/C++Frontend/2003-09-22-CompositeExprValue.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/C++Frontend/2003-09-22-CompositeExprValue.cpp 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 00000000000..9ee0289658f --- /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; +} -- 2.34.1