]> granicus.if.org Git - clang/commitdiff
Prep for new warning.
authorMike Stump <mrs@apple.com>
Tue, 21 Jul 2009 21:06:08 +0000 (21:06 +0000)
committerMike Stump <mrs@apple.com>
Tue, 21 Jul 2009 21:06:08 +0000 (21:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76643 91177308-0d34-0410-b5e6-96231b3b80d8

test/Index/cxx-operator-overload.cpp

index ffea76662da12847016a986b04c5bc07ad85476b..8f12f1661ffc4f31d3e52281389a408febcb7449 100644 (file)
@@ -10,8 +10,7 @@ static void bar() {
     Cls x4 = x1 + x2 + x3;
 }
 
-Cls Cls::operator +(const Cls &RHS) {
-}
+Cls Cls::operator +(const Cls &RHS) { while (1) {} }
 
 // RUN: clang-cc -emit-pch %s -o %t.ast &&