diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-09 23:08:42 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-09 23:08:42 +0000 |
commit | 5d3507d39cb6d58bd5e46bc9194972c9b00545a9 (patch) | |
tree | c823c040b2888bd3b09cbcee2d3db58f6de2e9c3 /clang/test/Index/cxx-operator-overload.cpp | |
parent | aec990efd72473be9cb6bbbfed4cc3c79dba84ef (diff) | |
download | bcm5719-llvm-5d3507d39cb6d58bd5e46bc9194972c9b00545a9.tar.gz bcm5719-llvm-5d3507d39cb6d58bd5e46bc9194972c9b00545a9.zip |
Improve handling of initialization by constructor, by ensuring that
such initializations properly convert constructor arguments and fill
in default arguments where necessary. This also makes the ownership
model more clear.
llvm-svn: 81394
Diffstat (limited to 'clang/test/Index/cxx-operator-overload.cpp')
-rw-r--r-- | clang/test/Index/cxx-operator-overload.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/clang/test/Index/cxx-operator-overload.cpp b/clang/test/Index/cxx-operator-overload.cpp index 6a913d670cf..9bda03ef8dc 100644 --- a/clang/test/Index/cxx-operator-overload.cpp +++ b/clang/test/Index/cxx-operator-overload.cpp @@ -1,5 +1,5 @@ // Run lines are sensitive to line numbers and come below the code. - +// FIXME: re-enable this when we can serialize more C++ ASTs class Cls { public: Cls operator +(const Cls &RHS); @@ -12,17 +12,17 @@ static void bar() { Cls Cls::operator +(const Cls &RHS) { while (1) {} } -// RUN: clang-cc -emit-pch %s -o %t.ast && +// RUN: clang-cc -emit-pch %s -o %t.ast -// RUN: index-test %t.ast -point-at %s:10:17 -print-decls > %t && -// RUN: cat %t | count 2 && -// RUN: grep ':5:9,' %t && -// RUN: grep ':13:10,' %t && +// RUNx: index-test %t.ast -point-at %s:10:17 -print-decls > %t && +// RUNx: cat %t | count 2 && +// RUNx: grep ':5:9,' %t && +// RUNx: grep ':13:10,' %t && // Yep, we can show references of '+' plus signs that are overloaded, w00t! -// RUN: index-test %t.ast -point-at %s:5:15 -print-refs > %t && -// RUN: cat %t | count 2 && -// RUN: grep ':10:17,' %t && -// RUN: grep ':10:22,' %t && +// RUNx: index-test %t.ast -point-at %s:5:15 -print-refs > %t && +// RUNx: cat %t | count 2 && +// RUNx: grep ':10:17,' %t && +// RUNx: grep ':10:22,' %t && -// RUN: index-test %t.ast -point-at %s:10:14 | grep 'DeclRefExpr x1' +// RUNx: index-test %t.ast -point-at %s:10:14 | grep 'DeclRefExpr x1' |