1ed53caebSArgyrios Kyrtzidis // Run lines are sensitive to line numbers and come below the code. 25d3507d3SDouglas Gregor // FIXME: re-enable this when we can serialize more C++ ASTs 39cbe886cSArgyrios Kyrtzidis class Cls { 49cbe886cSArgyrios Kyrtzidis public: 59cbe886cSArgyrios Kyrtzidis Cls operator +(const Cls &RHS); 69cbe886cSArgyrios Kyrtzidis }; 79cbe886cSArgyrios Kyrtzidis bar()89cbe886cSArgyrios Kyrtzidisstatic void bar() { 99cbe886cSArgyrios Kyrtzidis Cls x1, x2, x3; 109cbe886cSArgyrios Kyrtzidis Cls x4 = x1 + x2 + x3; 119cbe886cSArgyrios Kyrtzidis } 129cbe886cSArgyrios Kyrtzidis operator +(const Cls & RHS)13e303c9e4SMike StumpCls Cls::operator +(const Cls &RHS) { while (1) {} } 149cbe886cSArgyrios Kyrtzidis 15*8fbe78f6SDaniel Dunbar // RUN: %clang_cc1 -emit-pch %s -o %t.ast 16851b208aSArgyrios Kyrtzidis 175d3507d3SDouglas Gregor // RUNx: index-test %t.ast -point-at %s:10:17 -print-decls > %t && 185d3507d3SDouglas Gregor // RUNx: cat %t | count 2 && 195d3507d3SDouglas Gregor // RUNx: grep ':5:9,' %t && 205d3507d3SDouglas Gregor // RUNx: grep ':13:10,' %t && 21d49e8dd7SArgyrios Kyrtzidis 22d49e8dd7SArgyrios Kyrtzidis // Yep, we can show references of '+' plus signs that are overloaded, w00t! 235d3507d3SDouglas Gregor // RUNx: index-test %t.ast -point-at %s:5:15 -print-refs > %t && 245d3507d3SDouglas Gregor // RUNx: cat %t | count 2 && 255d3507d3SDouglas Gregor // RUNx: grep ':10:17,' %t && 265d3507d3SDouglas Gregor // RUNx: grep ':10:22,' %t && 27260a4703SArgyrios Kyrtzidis 285d3507d3SDouglas Gregor // RUNx: index-test %t.ast -point-at %s:10:14 | grep 'DeclRefExpr x1' 29